From e7c95cdb9198b38fcc71847521b2a3f8f76ff141 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 22 Jan 2023 18:12:49 +0100 Subject: [PATCH] Chat, Middle Header: Fix deleting history (#2324) --- src/global/actions/apiUpdaters/messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global/actions/apiUpdaters/messages.ts b/src/global/actions/apiUpdaters/messages.ts index 0e1c45a25..a0c9901d6 100644 --- a/src/global/actions/apiUpdaters/messages.ts +++ b/src/global/actions/apiUpdaters/messages.ts @@ -403,7 +403,7 @@ addActionHandler('apiUpdate', (global, actions, update) => { if (chatMessages) { const ids = Object.keys(chatMessages.byId).map(Number); - deleteMessages(global, chatId, ids, actions); + deleteMessages(getGlobal(), chatId, ids, actions); } else { actions.requestChatUpdate({ chatId }); }