Fix crash in community grouping toggle with pinned chats.

This commit is contained in:
John Preston
2026-07-15 22:21:11 +04:00
parent 7e74076910
commit 461544a09a
6 changed files with 42 additions and 22 deletions
+1 -1
View File
@@ -5327,7 +5327,7 @@ not_null<Dialogs::MainList*> Session::chatsListFor(
} else if (const auto history = entry->asHistory()) {
if (const auto info = history->communityListInfo()
; info
&& info->collapsedInDialogs()
&& info->collapsedInChatLists()
&& info->channel() != history->peer) {
return info->chatsList();
}