Composer: Fix disappearing reply (#2106)

This commit is contained in:
Alexander Zinchuk 2022-11-03 15:18:05 +01:00
parent 6f360fd6f8
commit 08b8dbe667

View File

@ -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],
);