2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix crash in pinned topic deletion.

This commit is contained in:
John Preston
2022-12-07 10:43:02 +04:00
parent d01969ff1e
commit 02e2fb1258
14 changed files with 66 additions and 40 deletions

View File

@@ -333,7 +333,7 @@ not_null<Row*> Entry::addToChatList(
void Entry::removeFromChatList(
FilterId filterId,
not_null<MainList*> list) {
if (!asTopic() && isPinnedDialog(filterId)) {
if (isPinnedDialog(filterId)) {
owner().setChatPinned(this, filterId, false);
}