diff --git a/addons/mail/static/src/core/web/messaging_menu.xml b/addons/mail/static/src/core/web/messaging_menu.xml index 5a845282a09..1b4c36550d1 100644 --- a/addons/mail/static/src/core/web/messaging_menu.xml +++ b/addons/mail/static/src/core/web/messaging_menu.xml @@ -80,7 +80,7 @@ displayName="thread.displayName" iconSrc="thread.imgUrl" hasMarkAsReadButton="thread.isUnread" - muted="thread.muteUntilDateTime" + muted="thread.muteUntilDateTime ? 2 : !thread.isUnread ? 1 : 0" onClick="(isMarkAsRead) => this.onClickThread(isMarkAsRead, thread)" onSwipeRight="hasTouch() and thread.isUnread ? { action: () => this.markAsRead(thread), icon: 'fa-check-circle', bgColor: 'bg-success' } : undefined" onSwipeLeft="hasTouch() and threadService.canUnpin(thread) ? { action: () => this.threadService.unpin(thread), icon: 'fa-times-circle', bgColor: 'bg-danger' } : undefined" diff --git a/addons/mail/static/src/core/web/notification_item.js b/addons/mail/static/src/core/web/notification_item.js index 8e8a777881c..0894f9e9e99 100644 --- a/addons/mail/static/src/core/web/notification_item.js +++ b/addons/mail/static/src/core/web/notification_item.js @@ -26,6 +26,7 @@ export class NotificationItem extends Component { static defaultProps = { counter: 0, displayName: "", + muted: 0, }; static template = "mail.NotificationItem"; diff --git a/addons/mail/static/src/core/web/notification_item.xml b/addons/mail/static/src/core/web/notification_item.xml index 1dab4cfba9e..382701f9da4 100644 --- a/addons/mail/static/src/core/web/notification_item.xml +++ b/addons/mail/static/src/core/web/notification_item.xml @@ -3,16 +3,16 @@ -