summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/services/chat_manager.js
diff options
context:
space:
mode:
authordbh <dbh@odoo.com>2018-02-02 16:03:58 +0530
committerAlexandre Kühn <aku@odoo.com>2018-02-20 13:33:01 +0100
commit7e4a8c03f17d685f5d4baf7d96a83b55fefcdab8 (patch)
treecf4caceb9bfff147fbac610153d09f453682282b /addons/mail/static/src/js/services/chat_manager.js
parentf40abe400aebf4bf604a1c6f8924aba1a96497ac (diff)
[FIX] mail: correct chat window dropdown unread counter + hidden state
Revision on recent JS refactoring: https://github.com/odoo/odoo/commit/02ec09cb1c3e2d7bc7968f40c18f2208d7f3f498 Intermediary changes have not been updated with final way of communicating with JS services. In particular, widgets must now explicitly call the service with this.call instead of relying on a mixin that hides the service call (e.g. the chat_mixin that has been removed)
Diffstat (limited to 'addons/mail/static/src/js/services/chat_manager.js')
-rw-r--r--addons/mail/static/src/js/services/chat_manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/services/chat_manager.js b/addons/mail/static/src/js/services/chat_manager.js
index 2655a07b55b..a58de02365a 100644
--- a/addons/mail/static/src/js/services/chat_manager.js
+++ b/addons/mail/static/src/js/services/chat_manager.js
@@ -1634,7 +1634,7 @@ var ChatManager = AbstractService.extend({
web_client.set_title_part("_chat", tabTitle);
}
- this._sendNotification(web_client, title, content);
+ this.call('bus_service', 'sendNotification', web_client, title, content);
},
/**
* Removes channel