From e29302cbbc6f13f59d886936206b78e6d1c86483 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 8 Apr 2025 17:00:18 +0200 Subject: [PATCH] Notification: Fix close animation for paid message notification (#5825) --- src/global/actions/api/messages.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/global/actions/api/messages.ts b/src/global/actions/api/messages.ts index 00a802e93..2d6c1f902 100644 --- a/src/global/actions/api/messages.ts +++ b/src/global/actions/api/messages.ts @@ -774,19 +774,6 @@ addActionHandler('deleteMessages', (global, actions, payload): ActionReturnType return message && !isMessageLocal(message); }); - Object.values(global.byTabId) - .forEach(({ id }) => { - messageIds.forEach((messageId) => { - const message = selectChatMessage(global, chatId, messageId); - if (message) { - actions.dismissNotification({ - localId: getMessageKey(message), - tabId: id, - }); - } - }); - }); - // Only local messages if (!messageIdsToDelete.length && messageIds.length) { deleteMessages(global, isChatChannel(chat) || isChatSuperGroup(chat) ? chatId : undefined, messageIds, actions);