summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-08-24 11:25:34 +0200
committerNicolas Martinelli <nim@odoo.com>2016-08-24 11:25:34 +0200
commitf30ec3022eb289e9f0eb812bb596bef5b12523e2 (patch)
tree1f45f82bdfb908d0790c09c60c3786e1c6091256
parentce5b802df693de73d0c52a807e23246bd1a254e1 (diff)
[FIX] mail: link in livechat
When a user sends a link thanks to the livechat, the link is not clickable is the recipient is on the frontend (e.g. visitor of the website). On the other hand, a link sent from the frontend to the backend works. This is because the message is sent as "html" from the backend, therefore no link conversion is done during the post-process of the massege (method `message_post`). Note that a link sent and received in the backend works because additional formatting is done (convert emojis, add links...). opw-686063
-rw-r--r--addons/mail/static/src/js/chat_manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js
index 02c4ce89852..8ed8343fa1b 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: 'html',
+ content_subtype: 'plaintext',
subtype: 'mail.mt_comment',
}));
}