Fixed button label in sponsored messages with external links.

This commit is contained in:
23rd 2023-11-27 19:01:12 +03:00 committed by John Preston
parent e24b86d460
commit f433d6fbc9

View file

@ -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