diff --git a/addons/mail/static/src/models/messaging_notification_handler.js b/addons/mail/static/src/models/messaging_notification_handler.js index 9309ecd5fa3..16d210c2d5d 100644 --- a/addons/mail/static/src/models/messaging_notification_handler.js +++ b/addons/mail/static/src/models/messaging_notification_handler.js @@ -323,10 +323,6 @@ registerModel({ pendingSeenMessageId: undefined, }); } - if (shouldComputeSeenIndicators) { - // FIXME force the computing of thread values (cf task-2261221) - this.messaging.models['Thread'].computeLastCurrentPartnerMessageSeenByEveryone(channel); - } }, /** * @private diff --git a/addons/mail/static/src/models/thread.js b/addons/mail/static/src/models/thread.js index ba1b4d8da8d..e487afa96df 100644 --- a/addons/mail/static/src/models/thread.js +++ b/addons/mail/static/src/models/thread.js @@ -122,17 +122,6 @@ registerModel({ }, }, modelMethods: { - /** - * @param {Thread} [thread] the concerned thread - */ - computeLastCurrentPartnerMessageSeenByEveryone(thread = undefined) { - const threads = thread ? [thread] : this.messaging.models['Thread'].all(); - threads.map(localThread => { - localThread.update({ - lastCurrentPartnerMessageSeenByEveryone: localThread._computeLastCurrentPartnerMessageSeenByEveryone(), - }); - }); - }, /** * @param {Object} data * @return {Object}