summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorXavier Dollé <xdo@odoo.com>2018-05-16 12:53:32 +0200
committerThibault Delavallée <tde@odoo.com>2018-05-16 16:06:10 +0200
commit92abf95a87505c95ad52febdd380b79da915621e (patch)
tree9400368c378a51069963d69a458012bd8e6c4eb5 /addons/web/static/src/js/views/basic
parent75e965f4b0e9150f7610e9f818ca2f833432d6f5 (diff)
[FIX] mail: correctly filter needaction on unread notifications in message_format
Previously to this commit needaction used by JS was not taking into account read notifications. It means notably Inbox counter could be higher than expected as taking into account read messages while Inbox displays only unread messages. This commit fixes that by checking notification state when giving needaction_partner_ids to message_format result. This fix has a small impact on performances as message_format is used in notification process for chat or push. A better implementation of message format and its postprocess could probably lessen this fix impact. As we target stable version we avoid rewriting other part of the code. Optimization will be done in development version. Related to task ID 1841243. This is a manual forward-port of commit 69714fbeee479cd3e0f89de39b3687c183791fc0 done in saas-11.2.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions