summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/bugfix
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2020-11-18 13:38:08 +0000
committerSébastien Theys <seb@odoo.com>2020-11-18 13:52:26 +0000
commitf22c34e7f61f7f8ac5b9ab7f9579cc4e6dd0e334 (patch)
tree44167a940f2a50e1f50b333c604ad05664395bd9 /addons/mail/static/src/bugfix
parent7a2902733c0538a410dd5b8df0de08e225b23426 (diff)
[FIX] mail: avoid marking hint as resolved before message list render
This change highlighted issues with the async behavior of `useUpdate`, which was no longer necessary and therefore reverted. This in turn highlighted issue with animation of chat window unfolding, making restoring of scroll position not work as intended due to the message list not having its whole height available during some time after render. This animation being minor (and even annoying in some cases) it was decided to remove it. task-2387729 closes odoo/odoo#61881 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/bugfix')
-rw-r--r--addons/mail/static/src/bugfix/bugfix.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/bugfix/bugfix.js b/addons/mail/static/src/bugfix/bugfix.js
index d4128a9b236..1253e69da8e 100644
--- a/addons/mail/static/src/bugfix/bugfix.js
+++ b/addons/mail/static/src/bugfix/bugfix.js
@@ -57,6 +57,9 @@ async function addFunctionToQueue({ component, func, priority }) {
* @param {integer} [param0.priority] determines the execution order of the function
* among the update function of other components. Lower priority is executed
* first. If no priority is given, the function is executed immediately.
+ * This param is deprecated because desynchronized update is causing issue if
+ * there is a new render planned in the meantime (models data become obsolete
+ * in the update method).
*/
function useUpdate({ func, priority }) {
const component = Component.current;