diff options
Diffstat (limited to 'addons/mail/static/src/models/thread/thread.js')
| -rw-r--r-- | addons/mail/static/src/models/thread/thread.js | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/addons/mail/static/src/models/thread/thread.js b/addons/mail/static/src/models/thread/thread.js index 4e1f1119351..6135a8802c3 100644 --- a/addons/mail/static/src/models/thread/thread.js +++ b/addons/mail/static/src/models/thread/thread.js @@ -1077,6 +1077,7 @@ function factory(dependencies) { /** * @private + * @returns {boolean} */ _computeHasSeenIndicators() { if (this.model !== 'mail.channel') { @@ -1509,23 +1510,23 @@ function factory(dependencies) { } /** - * Fetches followers of chats when they are displayed for the first - * time. This is necessary to clean the followers. - * @see `_onChangeFollowersPartner` for more information. - * * @private */ _onChangeThreadViews() { - if (this.channel_type !== 'chat') { - return; - } if (this.threadViews.length === 0) { return; } - if (this.areFollowersLoaded) { - return; + /** + * Fetches followers of chats when they are displayed for the first + * time. This is necessary to clean the followers. + * @see `_onChangeFollowersPartner` for more information. + */ + if (this.channel_type === 'chat' && !this.areFollowersLoaded) { + this.refreshFollowers(); + } + if (this.needactionMessagesAsOriginThread.length > 0) { + this.markNeedactionMessagesAsOriginThreadAsRead(); } - this.refreshFollowers(); } /** |
