summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/mail.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-03-30 12:52:26 +0200
committerThibault Delavallée <tde@openerp.com>2015-04-27 10:36:15 +0200
commit4b122ad41d873febe288ab1f8c6cdc078ca2a479 (patch)
tree9792fcbc0c61274ca6296e3ce6c2f67a2467b377 /addons/mail/static/src/js/mail.js
parentb7f04278bd5375d6dc21a3381df91c725bb2fd44 (diff)
[MIGR] mail: migration to the new API
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