diff options
Diffstat (limited to 'addons/mail/static/src/models/messaging_notification_handler')
| -rw-r--r-- | addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js index 6764f28ceb4..49f07bc5423 100644 --- a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js +++ b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js @@ -77,6 +77,10 @@ function factory(dependencies) { channelId: id, }, data)); case 'res.partner': + if (id !== this.env.messaging.currentPartner.id) { + // ignore broadcast to other partners + return; + } return this._handleNotificationPartner(Object.assign({}, data)); default: console.warn(`mail.messaging_notification_handler: Unhandled notification "${model}"`); |
