From 7d3c8437afc88cff54e6bb70b67495b11e4e1643 Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Wed, 28 Sep 2016 16:22:58 +0200 Subject: [FIX] discuss: supress the star button on '/help' bot. (#13626) A traceback was generated when starring the '/help' bot. opw-681626 --- addons/mail/static/src/js/chat_manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addons/mail/static/src/js/chat_manager.js') diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js index b58d35e61ed..8355162fb1b 100644 --- a/addons/mail/static/src/js/chat_manager.js +++ b/addons/mail/static/src/js/chat_manager.js @@ -127,7 +127,8 @@ function make_message (data) { subtype_description: data.subtype_description, is_author: data.author_id && data.author_id[0] === session.partner_id, is_note: data.is_note, - is_system_notification: data.message_type === 'notification' && data.model === 'mail.channel', + is_system_notification: (data.message_type === 'notification' && data.model === 'mail.channel') + || data.info === 'transient_message', attachment_ids: data.attachment_ids || [], subject: data.subject, email_from: data.email_from, -- cgit v1.2.3