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

Use notify* instead of mark* in Data::Session.

This commit is contained in:
John Preston
2018-01-17 21:20:55 +03:00
parent 8a56ede187
commit 04c8c95634
17 changed files with 137 additions and 140 deletions

View File

@@ -2424,12 +2424,12 @@ void History::clear(bool leaveItems) {
forgetScrollState();
}
if (leaveItems) {
Auth().data().markHistoryUnloaded(this);
Auth().data().notifyHistoryUnloaded(this);
} else {
setLastMessage(nullptr);
notifies.clear();
Auth().storage().remove(Storage::SharedMediaRemoveAll(peer->id));
Auth().data().markHistoryCleared(this);
Auth().data().notifyHistoryCleared(this);
}
clearBlocks(leaveItems);
if (leaveItems) {