mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fixed button label in sponsored messages with external links.
This commit is contained in:
parent
e24b86d460
commit
f433d6fbc9
1 changed files with 3 additions and 1 deletions
|
@ -689,7 +689,9 @@ HistoryItem::HistoryItem(
|
|||
/*from.peer ? from.peer->id : */PeerId(0)) {
|
||||
_flags |= MessageFlag::Sponsored;
|
||||
|
||||
const auto webPageType = from.isExactPost
|
||||
const auto webPageType = !from.externalLink.isEmpty()
|
||||
? WebPageType::None
|
||||
: from.isExactPost
|
||||
? WebPageType::Message
|
||||
: (from.botLinkInfo && !from.botLinkInfo->botAppName.isEmpty())
|
||||
? WebPageType::BotApp
|
||||
|
|
Loading…
Add table
Reference in a new issue