diff options
| author | Demaret Rivarola Johan <jde@odoo.com> | 2018-07-19 12:31:46 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-01-21 13:00:10 +0000 |
| commit | e2f20ffa938f98340f99a65b7c3e955cf2317951 (patch) | |
| tree | c100d16cc665121f9359e1b61ad3e7e0d0721507 /addons/mail/static/src/js/models | |
| parent | a3daff6bc121a42bf293ca91b8f522c26bac7c8a (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/models')
| -rw-r--r-- | addons/mail/static/src/js/models/threads/thread.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/models/threads/thread.js b/addons/mail/static/src/js/models/threads/thread.js index 068e69b9c32..8c622779bb3 100644 --- a/addons/mail/static/src/js/models/threads/thread.js +++ b/addons/mail/static/src/js/models/threads/thread.js @@ -344,6 +344,9 @@ var Thread = AbstractThread.extend(ServicesMixin, { body = this._generateEmojis(body); var messageData = { partner_ids: data.partner_ids, + channel_ids: _.map(data.channel_ids, function (channelID) { + return [4, channelID, false]; + }), body: body, attachment_ids: data.attachment_ids, canned_response_ids: data.canned_response_ids, |
