2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Removed display of stale sponsored messages.

This commit is contained in:
23rd
2021-11-05 10:44:51 +03:00
parent 5565da5308
commit 55eb381bd2
3 changed files with 18 additions and 5 deletions

View File

@@ -3010,6 +3010,7 @@ void HistoryWidget::loadMessagesDown() {
auto loadMigrated = _migrated && !(_migrated->isEmpty() || _migrated->loadedAtBottom() || (!_history->isEmpty() && !_history->loadedAtTop()));
auto from = loadMigrated ? _migrated : _history;
if (from->loadedAtBottom()) {
session().data().sponsoredMessages().request(_history);
return;
}