From 502f22e2ba5e839f4ba7b9ccb35cc9cf890ca9a6 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 6 Sep 2016 10:47:57 +0200 Subject: [PATCH] [FIX] mail: link in chat messages Commit f30ec302 defines the messages sent thanks to the channels as plain text. This is true for all cases but one: the notification (e.g. @user). Therefore, the notifications links are broken. opw-687781 --- addons/mail/static/src/js/chat_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js index 8ed8343fa1b..02c4ce89852 100644 --- a/addons/mail/static/src/js/chat_manager.js +++ b/addons/mail/static/src/js/chat_manager.js @@ -712,7 +712,7 @@ var chat_manager = { // post a message in a channel return ChannelModel.call('message_post', [options.channel_id], _.extend(msg, { message_type: 'comment', - content_subtype: 'plaintext', + content_subtype: 'html', subtype: 'mail.mt_comment', })); }