<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
    <t t-inherit="mail.MessagingMenu.content" t-inherit-mode="extension">
        <xpath expr="//NotificationItem[@body='message?.inlineBody']" position="attributes">
            <attribute name="rating">message?.rating</attribute>
            <attribute name="onClick">(isMarkAsRead) => message?.rating and !isMarkAsRead ? this.openThread(thread) : this.onClickThread(isMarkAsRead, thread)</attribute>
        </xpath>
    </t>
</templates>
