2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Fix folder updating when leaving a channel.

This commit is contained in:
John Preston
2022-12-27 14:05:22 +04:00
parent bf388d8a37
commit 63c2db30f2

View File

@@ -1176,6 +1176,7 @@ void Session::deleteConversationLocally(not_null<PeerData*> peer) {
setChatPinned(history, FilterId(), false);
}
removeChatListEntry(history);
history->clearFolder();
history->clear(peer->isChannel()
? History::ClearType::Unload
: History::ClearType::DeleteChat);