[IMP] mail: remove Thread/compute static method
Task-2806655 closes odoo/odoo#87354 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user