diff options
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
| -rw-r--r-- | addons/mail/static/src/models/thread_cache/thread_cache.js | 8 |
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 c684861e2be..5ca4443df5f 100644 --- a/addons/mail/static/src/models/thread_cache/thread_cache.js +++ b/addons/mail/static/src/models/thread_cache/thread_cache.js @@ -30,13 +30,13 @@ function factory(dependencies) { extraDomain: [['id', '<', Math.min(...messageIds)]], limit, })); - for (const threadView of this.threadViews) { - threadView.addComponentHint('more-messages-loaded', { fetchedMessages }); - } this.update({ isLoadingMore: false }); if (fetchedMessages.length < limit) { this.update({ isAllHistoryLoaded: true }); } + for (const threadView of this.threadViews) { + threadView.addComponentHint('more-messages-loaded', { fetchedMessages }); + } return fetchedMessages; } @@ -165,7 +165,7 @@ function factory(dependencies) { * @returns {mail.message[]} */ _computeNonEmptyMessages() { - return [['replace', this.messages.filter(message => !message.isEmpty)]] + return [['replace', this.messages.filter(message => !message.isEmpty)]]; } /** |
