Completely rewrite the 3 scroll hooks into a unified version that doesn't have conflicting and overriding conditions. - re-apply scroll (bottom in particular) when images are loaded - restore auto-scrolling to newly posted message - don't do any scroll save/restore before the thread is loaded - don't snapshot before the thread is loaded - don't snapshot after patch - fix condition for detecting when to restore snapshot - don't apply scroll multiple times for highlight Follow up of https://github.com/odoo/odoo/pull/141999/ Only breaking after https://github.com/odoo/odoo/pull/136539 Also follow-up fix of https://github.com/odoo/odoo/pull/127889/ runbot-39172 closes odoo/odoo#142308 Related: odoo/enterprise#50931 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>