[FIX] mail: No author reply trigger error due to parent message
Steps: No precise steps: Send/Receive a email in discuss Reply to it via email Actual result: crash due to parentMessage Expected result: no crash opw-3480185 closes odoo/odoo#134123 X-original-commit: 743a298089620865d95f725cae8b3e5ffc9a822e Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
<small class="position-relative d-block text-small mb-1" t-attf-class="{{ env.inChatWindow and props.alignedRight ? 'justify-content-end pe-5': 'ps-5' }}" t-on-click="() => this.props.onClick?.()">
|
||||
<span class="o-mail-MessageInReply-corner position-absolute bottom-0 top-50 pe-4 border-top text-300" t-attf-class="{{ env.inChatWindow and props.alignedRight ? 'o-isRightAlign border-end' : 'o-isLeftAlign border-start' }}" t-att-class="{ 'ms-n2': store.discuss.isActive }"/>
|
||||
<span t-if="!message.parentMessage.isEmpty" class="d-inline-flex align-items-center text-muted opacity-75" t-att-class="{ 'cursor-pointer opacity-100-hover': props.onClick }">
|
||||
<img class="o-mail-MessageInReply-avatar me-2 rounded" t-att-src="authorAvatarUrl" t-att-title="message.parentMessage.author.name" alt="Avatar"/>
|
||||
<img class="o-mail-MessageInReply-avatar me-2 rounded" t-att-src="authorAvatarUrl" t-att-title="message.parentMessage.author?.name ?? message.parentMessage.email_from" alt="Avatar"/>
|
||||
<span class="o-mail-MessageInReply-content overflow-hidden">
|
||||
<b>@<t t-out="message.parentMessage.author.name"/></b>:
|
||||
<b>@<t t-out="message.parentMessage.author?.name ?? message.parentMessage.email_from"/></b>:
|
||||
<span class="o-mail-MessageInReply-message ms-1 text-break">
|
||||
<t t-if="!message.parentMessage.isBodyEmpty">
|
||||
<t t-out="message.parentMessage.body"/>
|
||||
|
||||
Reference in New Issue
Block a user