Show correct chat preview for paid media.
This commit is contained in:
@@ -618,7 +618,8 @@ FillMenuResult FillSendMenu(
|
||||
const auto sending = (type != Type::Disabled);
|
||||
const auto empty = !sending
|
||||
&& (details.spoiler == SpoilerState::None)
|
||||
&& (details.caption == CaptionState::None);
|
||||
&& (details.caption == CaptionState::None)
|
||||
&& !details.price.has_value();
|
||||
if (empty || !action) {
|
||||
return FillMenuResult::Skipped;
|
||||
}
|
||||
@@ -651,7 +652,8 @@ FillMenuResult FillSendMenu(
|
||||
|
||||
if ((type != Type::Disabled)
|
||||
&& ((details.spoiler != SpoilerState::None)
|
||||
|| (details.caption != CaptionState::None))) {
|
||||
|| (details.caption != CaptionState::None)
|
||||
|| details.price.has_value())) {
|
||||
menu->addSeparator(&st::expandedMenuSeparator);
|
||||
}
|
||||
if (details.spoiler != SpoilerState::None) {
|
||||
|
||||
Reference in New Issue
Block a user