From 89fce592833ffab07aa1f0baf7c49d96f77bfdfb Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 28 Nov 2012 12:34:21 +0100 Subject: [PATCH] [IMP] mail: not display the 'no message' before to fetch the wall messages. bzr revid: chm@openerp.com-20121128113421-rcoo4003npxtnfzb --- addons/mail/static/src/js/mail.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index bb1a8067644..9fcf8cbb7c5 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1257,6 +1257,9 @@ openerp.mail = function (session) { // insert the message on dom thread.insert_message( message, typeof dom_insert_after == 'object' ? dom_insert_after : false); }); + if (!records.length && this.options.root_thread == this) { + this.no_message(); + } }, /** @@ -1440,7 +1443,6 @@ openerp.mail = function (session) { }); this.thread.appendTo( this.$el ); - this.thread.no_message(); if (this.action.params.show_compose_message) { this.thread.instantiate_compose_message();