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
@@ -472,7 +472,8 @@ void Entry::removeFromChatList(
FilterId filterId,
not_null<MainList*> list) {
if (isPinnedDialog(filterId)) {
owner().setChatPinned(this, filterId, false);
list->pinned()->setPinned(this, false);
owner().notifyPinnedDialogsOrderUpdated();
}
if (filterId) {
const auto it = _tagColors.find(filterId);