mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme to layer 183. Paid media.
This commit is contained in:
@@ -1091,8 +1091,8 @@ void HistoryMessageReplyMarkup::updateData(
|
||||
bool HistoryMessageReplyMarkup::hiddenBy(Data::Media *media) const {
|
||||
if (media && (data.flags & ReplyMarkupFlag::OnlyBuyButton)) {
|
||||
if (const auto invoice = media->invoice()) {
|
||||
if (invoice->extendedPreview
|
||||
&& (!invoice->extendedMedia || !invoice->receiptMsgId)) {
|
||||
if (HasUnpaidMedia(*invoice)
|
||||
|| (HasExtendedMedia(*invoice) && !invoice->receiptMsgId)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user