From 89a76ab5aa94e3a8fcad52161163cdfb2c250697 Mon Sep 17 00:00:00 2001 From: tsm-odoo Date: Fri, 24 Mar 2023 11:53:10 +0000 Subject: [PATCH] [FIX] mail: do not return when processing notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the `mail.channel/seen` notification handler would have returned if the channel was unknown. This is incorrect since it would prevent other notifications from the same batch from being processed. This commit fixes the issue. closes odoo/odoo#116518 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/core/messaging_service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/core/messaging_service.js b/addons/mail/static/src/core/messaging_service.js index 0e48e12905f..d925d998aad 100644 --- a/addons/mail/static/src/core/messaging_service.js +++ b/addons/mail/static/src/core/messaging_service.js @@ -351,7 +351,7 @@ export class Messaging { if (!channel) { // for example seen from another browser, the current one has no // knowledge of the channel - return; + continue; } if (this.store.user.id === partner_id) { channel.serverLastSeenMsgBySelf = last_message_id;