diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-01-29 08:36:19 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-02-01 11:31:09 +0100 |
| commit | 4bab99bdaf64eb0704c46ef5fe94098b14ccff29 (patch) | |
| tree | 79aa6b68078d0e93578617f8cfdb9ba90b14a533 /addons/mail/static/src/xml | |
| parent | ef77e6821a00b5646e68aee00fa2c3e26704f21e (diff) | |
[FIX] mail: don't notify 'join/left' messages
Messages of type 'notification' and whose model is 'mail.channel' are
considered as 'system notifications'. This is the case of 'join/left' messages.
They aren't taken into account when computing unread messages anymore.
Also use the same heuristic to decide whether or not to display the message's
star, so from now on pure notifications (not system notifications), like status
change on a document, can be starred.
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index 970c8ff6a6f..83436f37495 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -97,7 +97,7 @@ (from <a t-att-data-oe-id="message.origin_id" href="#">#<t t-esc="message.origin_name"/></a>) </t> <span> - <i t-if="options.display_stars && message.message_type != 'notification'" + <i t-if="options.display_stars && !message.is_system_notification" t-att-class="'fa fa-lg o_thread_message_star ' + (message.is_starred ? 'fa-star' : 'fa-star-o')" t-att-data-message-id="message.id" title="Mark as Todo"/> <i t-if="message.is_needaction && options.display_needactions" |
