summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/message/message.js
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-09-02 12:21:07 +0000
committerSébastien Theys <seb@odoo.com>2020-09-03 09:33:38 +0000
commit781bf9ec2eb5606d76ba3afa61cf06b5c3ac85fc (patch)
tree63e4553759b13830bf82a915a74353c02b081464 /addons/mail/static/src/components/message/message.js
parent45ba62817d8a82129a2bae44cae9e3757529bdce (diff)
[FIX] mail: add open chat when clicking on author im status icon
task-2329538 closes odoo/odoo#57006 X-original-commit: bfb8d99baaadedb2d0492b6f378b13b3330d496a Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message/message.js')
-rw-r--r--addons/mail/static/src/components/message/message.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mail/static/src/components/message/message.js b/addons/mail/static/src/components/message/message.js
index 499c462efe9..e63d35332ea 100644
--- a/addons/mail/static/src/components/message/message.js
+++ b/addons/mail/static/src/components/message/message.js
@@ -166,8 +166,9 @@ class Message extends Component {
return false;
}
if (
- this.message.originThread &&
- this.message.originThread.correspondent === this.message.author
+ this.threadView &&
+ this.threadView.thread &&
+ this.threadView.thread.correspondent === this.message.author
) {
return false;
}