[FIX] mail: Chatter widget: keep void list of ids when fetching messages;
authorThibault Delavallée <tde@openerp.com>
Thu, 9 Jan 2014 10:01:37 +0000 (11:01 +0100)
committerThibault Delavallée <tde@openerp.com>
Thu, 9 Jan 2014 10:01:37 +0000 (11:01 +0100)
only specific false ids should be replaced by a domain.

bzr revid: tde@openerp.com-20140109100137-7yy9em3klefz77ij

addons/mail/static/src/js/mail.js

index 96b2184..64164b0 100644 (file)
@@ -1416,7 +1416,7 @@ openerp.mail = function (session) {
         message_fetch: function (replace_domain, replace_context, ids, callback) {
             return this.ds_message.call('message_read', [
                     // ids force to read
-                    ids == false ? undefined : ids, 
+                    ids === false ? undefined : ids, 
                     // domain + additional
                     (replace_domain ? replace_domain : this.domain), 
                     // ids allready loaded