From e2f20ffa938f98340f99a65b7c3e955cf2317951 Mon Sep 17 00:00:00 2001 From: Demaret Rivarola Johan Date: Thu, 19 Jul 2018 12:31:46 +0000 Subject: [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 --- addons/mail/static/src/js/models/threads/thread.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'addons/mail/static/src/js/models/threads/thread.js') 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, -- cgit v1.2.3