2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Added manager of sponsored messages.

This commit is contained in:
23rd
2021-09-26 21:24:47 +03:00
committed by John Preston
parent 0c906a5e6d
commit eda5cd47ad
10 changed files with 301 additions and 2 deletions

View File

@@ -2262,6 +2262,9 @@ void History::setChatListMessage(HistoryItem *item) {
}
const auto was = _chatListMessage.value_or(nullptr);
if (item) {
if (item->isSponsored()) {
return;
}
if (_chatListMessage
&& *_chatListMessage
&& !IsServerMsgId((*_chatListMessage)->id)