From 069449b0e9bb950bba118fa274ab21350cfb7647 Mon Sep 17 00:00:00 2001 From: Dhruv Patel Date: Mon, 22 Feb 2021 08:59:31 +0000 Subject: [FIX] mail: chatter autoloading loads more messages too quickly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if you check on any chatter with a lot of messages, you will see that it starts loading all the messages as soon as you scroll down even just 1 pixel. This makes a lot of loading of the messages for no reason unnecessarily. What should happen instead is that it should load more message only when scrolling all the way down to the bottom.This works fine in chatwindow & discuss. With this commit, resolved this issue by providing the exact scrollable element to the message list from parent component to the child. so with proper element we can have proper scrollable heights and other dimensions as well to handle load more messages properly. Task : 2382735 closes odoo/odoo#66584 Related: odoo/enterprise#16767 Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/components/thread_view/thread_view.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/mail/static/src/components/thread_view/thread_view.xml') diff --git a/addons/mail/static/src/components/thread_view/thread_view.xml b/addons/mail/static/src/components/thread_view/thread_view.xml index 495408cc8f6..8f06bf394fa 100644 --- a/addons/mail/static/src/components/thread_view/thread_view.xml +++ b/addons/mail/static/src/components/thread_view/thread_view.xml @@ -12,6 +12,7 @@