From 41c39eab3ee78c39240437d01afcea9a05ef07da Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 19 Mar 2023 22:31:28 -0500 Subject: [PATCH] Draft: Fix reply not saving on sync (#2829) --- src/global/actions/api/sync.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/global/actions/api/sync.ts b/src/global/actions/api/sync.ts index 5a8c15202..74aa3a0f9 100644 --- a/src/global/actions/api/sync.ts +++ b/src/global/actions/api/sync.ts @@ -26,7 +26,7 @@ import { selectCurrentMessageList, selectDraft, selectEditingDraft, - selectEditingId, + selectEditingId, selectReplyingToId, selectTabState, selectThreadInfo, } from '../../selectors'; @@ -106,6 +106,7 @@ async function loadAndReplaceMessages(global: T, actions: draft: selectDraft(global, chatId, Number(threadId)), editingId: selectEditingId(global, chatId, Number(threadId)), editingDraft: selectEditingDraft(global, chatId, Number(threadId)), + replyingToId: selectReplyingToId(global, chatId, Number(threadId)), }; return acc2;