[Dev] Comments: Remove unnecessary requestThreadInfoUpdate (#2577)

This commit is contained in:
Alexander Zinchuk 2023-02-21 18:28:02 +01:00
parent b0310391c2
commit 787a9f5c93

View File

@ -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' });