Room chat history does not scroll to most recent messages on open
Description
When switching to a room which has a long chat history, the chat history widget will sometimes not be scrolled to the bottom where the most recent message is, but instead will be scrolled far up the page. This happens irrespective of where the room was scrolled to when it was previously visited, and irrespective of where the current room is scrolled to. This happens in both Bubble and Compact mode.
Steps to reproduce
It's not reliably reproducible, in particular it tends to not happen on initial loading of the room, when the client has first started up.
What is the expected correct behavior?
When a room is opened, it should show some predictable behaviour. For example:
- Always scroll to the newest message
- Always scroll to the same location as the previous visit
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
System/Matrix Information
NeoChat 22.02
Operating System: KDE neon 5.24
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-39-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8365U CPU @ 1.60GHz
Memory: 7,4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
I also tested against NeoChat built from source against KDE Frameworks Version: 5.94.0