room-history: Make sure auto-scrolling scrolls all the way down

Seems to be an issue otherwise when we switch rooms.
This commit is contained in:
Kévin Commaille 2023-04-24 14:20:35 +02:00
parent 9d7b31e502
commit 83f2dbd6c7
No known key found for this signature in database
GPG key ID: DD507DAE96E8245C

View file

@ -348,6 +348,8 @@ mod imp {
if is_at_bottom {
imp.is_auto_scrolling.set(false);
obj.set_sticky(true);
} else {
obj.scroll_down();
}
} else {
obj.set_sticky(is_at_bottom);