add minimal scroll to message, only when on current timeline

This commit is contained in:
Henry Hiles 2026-03-12 21:09:11 -04:00
commit 9a3f7e9bdc
No known key found for this signature in database
4 changed files with 22 additions and 9 deletions

View file

@ -435,6 +435,7 @@ class RoomChat extends HookConsumerWidget {
customWidget: getTextWidget(message),
topWidget: TopWidget(
message,
onTapReply: notifier.scrollToMessage,
groupStatus: groupStatus,
),
message: message,
@ -491,6 +492,8 @@ class RoomChat extends HookConsumerWidget {
topWidget: TopWidget(
message,
groupStatus: groupStatus,
onTapReply:
notifier.scrollToMessage,
alwaysShow: true,
),
message: textMessage,
@ -503,6 +506,8 @@ class RoomChat extends HookConsumerWidget {
: TopWidget(
message,
groupStatus: groupStatus,
onTapReply:
notifier.scrollToMessage,
alwaysShow: true,
),
customImageProvider: CachedNetworkImage(
@ -547,6 +552,7 @@ class RoomChat extends HookConsumerWidget {
child: FlyerChatFileMessage(
topWidget: TopWidget(
message,
onTapReply: notifier.scrollToMessage,
groupStatus: groupStatus,
),
message: message,