mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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)) {
|
/*from.peer ? from.peer->id : */PeerId(0)) {
|
||||||
_flags |= MessageFlag::Sponsored;
|
_flags |= MessageFlag::Sponsored;
|
||||||
|
|
||||||
const auto webPageType = from.isExactPost
|
const auto webPageType = !from.externalLink.isEmpty()
|
||||||
|
? WebPageType::None
|
||||||
|
: from.isExactPost
|
||||||
? WebPageType::Message
|
? WebPageType::Message
|
||||||
: (from.botLinkInfo && !from.botLinkInfo->botAppName.isEmpty())
|
: (from.botLinkInfo && !from.botLinkInfo->botAppName.isEmpty())
|
||||||
? WebPageType::BotApp
|
? WebPageType::BotApp
|
||||||
|
|
Loading…
Add table
Reference in a new issue