summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/messaging_notification_handler
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-09-29 14:39:46 +0000
committerAlexandre Kühn <aku@odoo.com>2020-09-29 16:41:14 +0000
commit0df66708defd0fcb288979b1431d8180831e43d3 (patch)
treef6dc459fef07fd5f0d48213277d9c0920bfbccd1 /addons/mail/static/src/models/messaging_notification_handler
parentec880af6aa091ba5f5cc39e754c7266d2488cba7 (diff)
[FIX] mail: do not show new messages separator for own messages
Also fix compute of local counter in some specific situations. task-2341740 closes odoo/odoo#58855 X-original-commit: 7d1878ff8a4757d1626d694b624f79e597ddd717 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
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.js5
1 files changed, 1 insertions, 4 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 8123a69e7a5..ede9245602d 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
@@ -411,10 +411,7 @@ function factory(dependencies) {
} else if (type === 'author') {
return this._handleNotificationPartnerAuthor(data);
} else if (info === 'channel_seen') {
- return this._handleNotificationChannelSeen(data.channel_id, {
- last_message_id: data.last_message_id,
- partner_id: this.env.messaging.currentPartner.id,
- });
+ return this._handleNotificationChannelSeen(data.channel_id, data);
} else if (type === 'deletion') {
return this._handleNotificationPartnerDeletion(data);
} else if (type === 'message_notification_update') {