From 4f12598008eba2bb2e65016e12acf3edd5d83f8c Mon Sep 17 00:00:00 2001 From: Xavier Dubuc Date: Fri, 18 Sep 2020 10:09:04 +0000 Subject: [FIX] mail: use compute fields for identifying relations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (in message seen indicators) task-2335647 closes odoo/odoo#58373 X-original-commit: 3d4ff42f4474a5761c9e0737297d973992a2fcc2 Signed-off-by: Sébastien Theys (seb) --- .../messaging_notification_handler.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'addons/mail/static/src/models/messaging_notification_handler') 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, }, ]], }); -- cgit v1.2.3