From 787a9f5c93aca9c200a0f8a78217aca6297640fc Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 21 Feb 2023 18:28:02 +0100 Subject: [PATCH] [Dev] Comments: Remove unnecessary `requestThreadInfoUpdate` (#2577) --- src/global/actions/api/chats.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/global/actions/api/chats.ts b/src/global/actions/api/chats.ts index d791188e2..51775d6b1 100644 --- a/src/global/actions/api/chats.ts +++ b/src/global/actions/api/chats.ts @@ -129,14 +129,6 @@ addActionHandler('openChat', (global, actions, payload): ActionReturnType => { actions.toggleChatUnread({ id }); } - // Please telegram send us some updates about linked chat 🙏 - if (chat?.lastMessage?.repliesThreadInfo) { - actions.requestThreadInfoUpdate({ - chatId: chat.lastMessage.repliesThreadInfo.chatId, - threadId: chat.lastMessage.repliesThreadInfo.threadId, - }); - } - if (!chat) { if (id === currentUserId) { void callApi('fetchChat', { type: 'self' });