diff options
| author | David Beguin <dbe@odoo.com> | 2018-11-30 09:19:44 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2018-12-05 14:37:13 +0000 |
| commit | bfb18f4326c8191e46518ea9e50697918391d347 (patch) | |
| tree | dc7f1ee222f4235ddbe79dbdc558bfbae6ebbaad /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | ce20c29f820ee748afa40375d4dc350e119c710a (diff) | |
[IMP] im_livechat : avoid double notif for public livechat channel and clean method
As in super, we add uuid and message if channel is public
we have to exculde the public channel to add the same in a livechat case
Also, _channel_message_notifications is a bit rewritten to remove useless
code. Indeed, notifications will always be filled in as
_channel_message_notifications is only called by _notify that ensure that self
is not null and that message is singleton. In super, the notifications will then be
filled in and in override, no need to check if notifications is not empty.
We take the message dict from notif to avoid calling message_format a second time.
Task ID : 1895998
Closes PR #28283
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
