From 9232f5c5fe94381ea5787ac7ec42910f83f8a6d0 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 6 Apr 2023 08:20:44 +0200 Subject: [PATCH] Message: Fix pinned icon not disappearing when unpinning all (#2935) --- src/global/actions/api/messages.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/global/actions/api/messages.ts b/src/global/actions/api/messages.ts index 9994c8faf..b18290cd5 100644 --- a/src/global/actions/api/messages.ts +++ b/src/global/actions/api/messages.ts @@ -73,7 +73,7 @@ import { selectLanguageCode, selectListedIds, selectNoWebPage, - selectOutlyingListByMessageId, + selectOutlyingListByMessageId, selectPinnedIds, selectRealLastReadId, selectReplyingToId, selectScheduledMessage, @@ -459,6 +459,10 @@ addActionHandler('unpinAllMessages', async (global, actions, payload): Promise { + global = updateChatMessage(global, chatId, id, { isPinned: false }); + }); global = replaceThreadParam(global, chat.id, MAIN_THREAD_ID, 'pinnedIds', []); setGlobal(global); });