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.js4
1 files changed, 3 insertions, 1 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 5ca4443df5f..8383936a3f1 100644
--- a/addons/mail/static/src/models/thread_cache/thread_cache.js
+++ b/addons/mail/static/src/models/thread_cache/thread_cache.js
@@ -195,7 +195,9 @@ function factory(dependencies) {
}
const wasCacheRefreshRequested = this.isCacheRefreshRequested;
// mark hint as processed
- this.update({ isCacheRefreshRequested: false });
+ if (this.isCacheRefreshRequested) {
+ this.update({ isCacheRefreshRequested: false });
+ }
if (this.thread.isTemporary) {
// temporary threads don't exist on the server
return false;