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);