summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_view/thread_view.js
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2021-01-22 17:10:29 +0000
committerSébastien Theys <seb@odoo.com>2021-01-22 17:10:29 +0000
commit12f11e0daf7e459bfee518b312e144d78e5a5759 (patch)
tree6d1a65755c2ee8e9df43d6da5ded087efb030cde /addons/mail/static/src/models/thread_view/thread_view.js
parent86333160f92c16bc61f36b413caed325f8ac59a0 (diff)
[FIX] mail: fix inbox mark all as read on thread view
task-2426357 task-2426366 closes odoo/odoo#64009 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_view/thread_view.js')
-rw-r--r--addons/mail/static/src/models/thread_view/thread_view.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/mail/static/src/models/thread_view/thread_view.js b/addons/mail/static/src/models/thread_view/thread_view.js
index bf4560998bd..534fd2769a9 100644
--- a/addons/mail/static/src/models/thread_view/thread_view.js
+++ b/addons/mail/static/src/models/thread_view/thread_view.js
@@ -138,7 +138,10 @@ function factory(dependencies) {
this.update({ componentHintList: clear() });
this.addComponentHint('change-of-thread-cache');
if (this.threadCache) {
- this.threadCache.update({ isCacheRefreshRequested: true });
+ this.threadCache.update({
+ isCacheRefreshRequested: true,
+ isMarkAllAsReadRequested: true,
+ });
}
this.update({ lastVisibleMessage: [['unlink']] });
}