mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Remove direct chats that were cleared.
This commit is contained in:
@@ -176,6 +176,14 @@ void SavedMessages::requestSomeStale() {
|
||||
for (const auto &peer : peers) {
|
||||
finishSublistRequest(peer);
|
||||
}
|
||||
for (const auto &peer : peers) {
|
||||
if (const auto sublist = sublistLoaded(peer)) {
|
||||
if (!sublist->lastMessage()
|
||||
&& !sublist->lastServerMessage()) {
|
||||
applySublistDeleted(peer);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
auto &histories = owner().histories();
|
||||
_staleRequestId = histories.sendRequest(_owningHistory, type, [=](
|
||||
|
||||
Reference in New Issue
Block a user