summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window/chat_window.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/components/chat_window/chat_window.js')
-rw-r--r--addons/mail/static/src/components/chat_window/chat_window.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/chat_window/chat_window.js b/addons/mail/static/src/components/chat_window/chat_window.js
index 4480be9db11..46e60bbea54 100644
--- a/addons/mail/static/src/components/chat_window/chat_window.js
+++ b/addons/mail/static/src/components/chat_window/chat_window.js
@@ -135,6 +135,9 @@ class ChatWindow extends Component {
if (!this._threadRef.comp || !this.chatWindow.threadViewer) {
return;
}
+ this.chatWindow.threadViewer.saveThreadCacheScrollHeightAsInitial(
+ this._threadRef.comp.getScrollHeight()
+ );
this.chatWindow.threadViewer.saveThreadCacheScrollPositionsAsInitial(
this._threadRef.comp.getScrollTop()
);