From 63c2db30f2bbdc534307a69bb38d14fbca9184ac Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 27 Dec 2022 14:05:22 +0400 Subject: [PATCH] Fix folder updating when leaving a channel. --- Telegram/SourceFiles/data/data_session.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/data/data_session.cpp b/Telegram/SourceFiles/data/data_session.cpp index 43e90b0fe8..51a83419b4 100644 --- a/Telegram/SourceFiles/data/data_session.cpp +++ b/Telegram/SourceFiles/data/data_session.cpp @@ -1176,6 +1176,7 @@ void Session::deleteConversationLocally(not_null peer) { setChatPinned(history, FilterId(), false); } removeChatListEntry(history); + history->clearFolder(); history->clear(peer->isChannel() ? History::ClearType::Unload : History::ClearType::DeleteChat);