From e5b39507c8390e32db839ed441bf4290cb142185 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Mon, 28 Sep 2026 09:55:08 -0400 Subject: [PATCH] Jump to current timelime when scrolled to bottom of historical timeline Fixes #100. --- lib/helpers/hooks/chat_scroll.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/helpers/hooks/chat_scroll.dart b/lib/helpers/hooks/chat_scroll.dart index 3b1531eb..8c26433 100644 --- a/lib/helpers/hooks/chat_scroll.dart +++ b/lib/helpers/hooks/chat_scroll.dart @@ -129,6 +129,14 @@ final class ChatScroll({ } else if (position.extentBefore <= readThreshold) { await markRead(); } + + if (controllerData.isLoading == false && + position.extentBefore <= readThreshold && + controllerData.value?.hasMoreForward == false && + contextualEvent.value != null) { + anchorId.value = null; + contextualEvent.value = null; + } } scrollController.addListener(checkPosition);