summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/messaging_notification_handler
diff options
context:
space:
mode:
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.js8
1 files changed, 4 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 12976aaadad..8123a69e7a5 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
@@ -162,8 +162,8 @@ function factory(dependencies) {
channel.update({
messageSeenIndicators: [['insert',
{
- id: this.env.models['mail.message_seen_indicator'].computeId(last_message_id, channel.id),
- message: [['insert', {id: last_message_id}]],
+ channelId: channel.id,
+ messageId: last_message_id,
}
]],
});
@@ -314,8 +314,8 @@ function factory(dependencies) {
// FIXME should no longer use computeId (task-2335647)
messageSeenIndicators: [['insert',
{
- id: this.env.models['mail.message_seen_indicator'].computeId(last_message_id, channel.id),
- message: [['link', lastMessage]],
+ channelId: channel.id,
+ messageId: lastMessage.id,
},
]],
});