summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/composers/basic_composer.js
diff options
context:
space:
mode:
authorDemaret Rivarola Johan <jde@odoo.com>2018-07-19 12:31:46 +0000
committerDavid Beguin <dbe@odoo.com>2019-01-21 13:00:10 +0000
commite2f20ffa938f98340f99a65b7c3e955cf2317951 (patch)
treec100d16cc665121f9359e1b61ad3e7e0d0721507 /addons/mail/static/src/js/composers/basic_composer.js
parenta3daff6bc121a42bf293ca91b8f522c26bac7c8a (diff)
[IMP] mail: chatter channel notification
Ability to notify the channel but do not add the channel as a follower. Faster than mentioning every member of the channel. Also, clean the rendering of the mention suggestions name to avoid having escaped char in the UI. Task id : 1859802 Closes #25887
Diffstat (limited to 'addons/mail/static/src/js/composers/basic_composer.js')
-rw-r--r--addons/mail/static/src/js/composers/basic_composer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/composers/basic_composer.js b/addons/mail/static/src/js/composers/basic_composer.js
index 03ffd1c7a30..b88d7f6b0d9 100644
--- a/addons/mail/static/src/js/composers/basic_composer.js
+++ b/addons/mail/static/src/js/composers/basic_composer.js
@@ -416,6 +416,7 @@ var BasicComposer = Widget.extend({
attachment_ids: _.pluck(this.get('attachment_ids'), 'id'),
partner_ids: _.uniq(_.pluck(this._mentionManager.getListenerSelection('@'), 'id')),
canned_response_ids: _.uniq(_.pluck(this._mentionManager.getListenerSelections()[':'], 'id')),
+ channel_ids: _.uniq(_.pluck(this._mentionManager.getListenerSelection('#'), 'id')),
command: commands.length > 0 ? commands[0].name : undefined,
});
},