summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/mail.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/mail.js')
-rw-r--r--addons/mail/static/src/js/mail.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index 6bd7ba36378..8d0b19d605e 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -1001,7 +1001,7 @@ var ThreadMessage = MessageCommon.extend({
var domain = mail_utils.expand_domain( this.options.root_thread.domain )
.concat([["id", "in", message_ids ]]);
- return this.parent_thread.ds_message.call('message_read', [undefined, domain, [], !!this.parent_thread.options.display_indented_thread, this.context, this.parent_thread.id])
+ return this.parent_thread.ds_message.call('message_read_wrapper', [undefined, domain, [], !!this.parent_thread.options.display_indented_thread, this.context, this.parent_thread.id])
.then( function (records) {
// remove message not loaded
_.map(messages, function (msg) {
@@ -1366,7 +1366,7 @@ var Thread = Widget.extend({
* @param {Array} ids read (if the are some ids, the method don't use the domain)
*/
message_fetch: function (replace_domain, replace_context, ids, callback) {
- return this.ds_message.call('message_read', [
+ return this.ds_message.call('message_read_wrapper', [
// ids force to read
ids === false ? undefined : ids && ids.slice(0, this.options.fetch_limit),
// domain + additional