summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/models/thread_cache')
-rw-r--r--addons/mail/static/src/models/thread_cache/thread_cache.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/mail/static/src/models/thread_cache/thread_cache.js b/addons/mail/static/src/models/thread_cache/thread_cache.js
index c89ded407a3..e6147fd68a0 100644
--- a/addons/mail/static/src/models/thread_cache/thread_cache.js
+++ b/addons/mail/static/src/models/thread_cache/thread_cache.js
@@ -56,8 +56,8 @@ function factory(dependencies) {
args: [domain],
kwargs: this._getFetchMessagesKwargs(),
}, { shadow: true }));
- for (const viewer of this.thread.viewers) {
- viewer.addComponentHint('more-messages-loaded');
+ for (const threadView of this.thread.threadViews) {
+ threadView.addComponentHint('more-messages-loaded');
}
this._handleMessagesLoaded(messagesData);
}
@@ -292,8 +292,8 @@ function factory(dependencies) {
isLoading: false,
isLoadingMore: false,
});
- for (const viewer of this.thread.viewers) {
- viewer.handleThreadCacheLoaded(this);
+ for (const threadView of this.thread.threadViews) {
+ threadView.handleThreadCacheLoaded(this);
}
}