summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/message/message.xml
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-11-20 16:05:53 +0000
committerSébastien Theys <seb@odoo.com>2020-11-20 16:06:54 +0000
commit4e0e8a415ae2175cd68e514cff33b2bffeb99db7 (patch)
tree0d2cab2a7d4bd72d38eddc47b356686419b907aa /addons/mail/static/src/components/message/message.xml
parent884bebb0f549dc4385cec9542f74e0bba64ccb08 (diff)
[FIX] mail: avoid empty seen indicator
`MessageSeenIndicator` sub-component should not be rendered if the thread does not support seen indicators. The issue is manifesting because the otherwise empty indicator has a margin, which is adding more space than expected before the following element. closes odoo/odoo#62030 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message/message.xml')
-rw-r--r--addons/mail/static/src/components/message/message.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/components/message/message.xml b/addons/mail/static/src/components/message/message.xml
index 300130f6518..92ed8c85813 100644
--- a/addons/mail/static/src/components/message/message.xml
+++ b/addons/mail/static/src/components/message/message.xml
@@ -76,7 +76,7 @@
<div class="o_Message_date o_Message_headerDate" t-att-class="{ 'o-message-selected': props.isSelected }" t-att-title="datetime">
- <t t-esc="message.dateFromNow"/>
</div>
- <t t-if="message.isCurrentPartnerAuthor and threadView and threadView.thread">
+ <t t-if="message.isCurrentPartnerAuthor and threadView and threadView.thread and threadView.thread.hasSeenIndicators">
<MessageSeenIndicator class="o_Message_seenIndicator" messageLocalId="message.localId" threadLocalId="threadView.thread.localId"/>
</t>
<t t-if="threadView and message.originThread and message.originThread !== threadView.thread">