From 83f2dbd6c71b85f00966535d2fe5b4cc82bb7781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 24 Apr 2023 14:20:35 +0200 Subject: [PATCH] room-history: Make sure auto-scrolling scrolls all the way down Seems to be an issue otherwise when we switch rooms. --- src/session/content/room_history/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session/content/room_history/mod.rs b/src/session/content/room_history/mod.rs index 77493cd1..decdce5f 100644 --- a/src/session/content/room_history/mod.rs +++ b/src/session/content/room_history/mod.rs @@ -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);