diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 10a18c755..59e2ecc56 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -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