diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-10-09 10:55:21 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-10-09 12:04:01 +0000 |
| commit | aa006658ea25abaa2b8d03003f1d4f9214fb6468 (patch) | |
| tree | 06ba9046da4f2c4d6382c88a3075f3ec912b7ff9 /addons/mail/static/src/components/message_list | |
| parent | de62d7bae2c466b74b0d9a83398c5f031233afdb (diff) | |
[FIX] mail: fix discuss search filters and related issues
- 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) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message_list')
| -rw-r--r-- | addons/mail/static/src/components/message_list/message_list.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/mail/static/src/components/message_list/message_list.js b/addons/mail/static/src/components/message_list/message_list.js index 72368ec3689..b7332514141 100644 --- a/addons/mail/static/src/components/message_list/message_list.js +++ b/addons/mail/static/src/components/message_list/message_list.js @@ -124,12 +124,18 @@ class MessageList extends Component { case 'home-menu-shown': this._adjustFromHomeMenuShown(hint); break; + case 'messages-loaded': + this.threadView.markComponentHintProcessed(hint); + break; case 'message-received': this._adjustFromMessageReceived(hint); break; case 'more-messages-loaded': this._adjustFromMoreMessagesLoaded(hint); break; + case 'new-messages-loaded': + this.threadView.markComponentHintProcessed(hint); + break; } } this._willPatchSnapshot = undefined; @@ -333,9 +339,6 @@ class MessageList extends Component { isProcessed = true; } if (isProcessed) { - this.env.messagingBus.trigger('o-component-message-list-thread-cache-changed', { - threadViewer: this.threadView.threadViewer, - }); this.threadView.markComponentHintProcessed(hint); } } |
