From 280ebe315aed2648ac17976df68b5270f998231a Mon Sep 17 00:00:00 2001 From: CarlosRoca13 Date: Tue, 23 Dec 2025 17:20:04 +0100 Subject: [PATCH] [FIX] mail_tracking: Error on tabs without thread open when marking as reviewed Before these changes, when the bus event was received in tabs that did not have the message open, an error appeared because the system was not able to find the message. After these changes, if the message is not available on the screen, the process continues because synchronization will not be necessary, and therefore the error will no longer occur. --- .../static/src/services/mail_core_common_service_patch.esm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mail_tracking/static/src/services/mail_core_common_service_patch.esm.js b/mail_tracking/static/src/services/mail_core_common_service_patch.esm.js index 2c09f36e8..d5dcbc7f0 100644 --- a/mail_tracking/static/src/services/mail_core_common_service_patch.esm.js +++ b/mail_tracking/static/src/services/mail_core_common_service_patch.esm.js @@ -11,6 +11,7 @@ patch(MailCoreCommon.prototype, { const {message_ids: messageIds} = payload; for (const id of messageIds) { const message = this.store.Message.get({id}); + if (!message) continue; const failedBox = this.store.failed; if (notifId > failedBox.counter_bus_id) { failedBox.counter--;