From 08b8dbe667f61408f26a33ab1f426e3473578965 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 3 Nov 2022 15:18:05 +0100 Subject: [PATCH] Composer: Fix disappearing reply (#2106) --- src/global/actions/api/chats.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/global/actions/api/chats.ts b/src/global/actions/api/chats.ts index 2433277cf..f276bd294 100644 --- a/src/global/actions/api/chats.ts +++ b/src/global/actions/api/chats.ts @@ -1245,10 +1245,13 @@ async function loadChats( global = updateChatListSecondaryInfo(global, listType, result); - result.chatIds.forEach((chatId) => { + Object.keys(result.draftsById).forEach((chatId) => { global = replaceThreadParam( global, chatId, MAIN_THREAD_ID, 'draft', result.draftsById[chatId], ); + }); + + Object.keys(result.replyingToById).forEach((chatId) => { global = replaceThreadParam( global, chatId, MAIN_THREAD_ID, 'replyingToId', result.replyingToById[chatId], );