From aa006658ea25abaa2b8d03003f1d4f9214fb6468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 9 Oct 2020 10:55:21 +0000 Subject: [FIX] mail: fix discuss search filters and related issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - don't reset `stringifiedDomain` when changing thread (this led to the control panel displaying obsolete filters) - refresh non-main cache that are currently displayed when there is a known change of messages in the same thread's main cache - refresh non-main-cache on displaying them, to fetch potentially new messages - fix discuss "select all" conditions task-2171873 task-2282374 closes odoo/odoo#59631 X-original-commit: b89dc5f949b3ad062fc4197a4152066c207e1bf9 Related: odoo/enterprise#13958 Signed-off-by: Alexandre Kühn (aku) --- .../messaging_notification_handler.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'addons/mail/static/src/models/messaging_notification_handler') diff --git a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js index 6eb06ee01af..4b3baded714 100644 --- a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js +++ b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js @@ -551,8 +551,6 @@ function factory(dependencies) { const inboxMailbox = this.env.messaging.inbox; // 1. move messages from inbox to history - // AKU TODO: flag other caches to invalidate - // task-2171873 for (const message_id of message_ids) { // We need to ignore all not yet known messages because we don't want them // to be shown partially as they would be linked directly to mainCache @@ -625,10 +623,6 @@ function factory(dependencies) { continue; } message.update({ isStarred: starred }); - if (!starred) { - // AKU TODO: flag starred other caches for invalidation - // task-2171873 - } starredMailbox.update({ counter: starred ? starredMailbox.counter + 1 -- cgit v1.2.3