small fixups

This commit is contained in:
Henry Hiles 2026-09-26 21:11:11 -04:00
commit e300f4efc9
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 21 additions and 17 deletions

View file

@ -30,7 +30,7 @@ class const ChatPage({super.key}) extends HookConsumerWidget {
child: Consumer(
builder: (context, ref, _) {
final initialHighlight = ref.watch(
JumpToEventController.provider,
JumpToEventController.provider(roomId),
);
return RoomChat(
key: ValueKey((roomId, initialHighlight)),

View file

@ -130,7 +130,7 @@ class const NotificationsPage({
padding: .only(top: 8),
child: HighlightWrapper(
InkWell(
onTap: () {
onTap: () async {
final spaces = ref.read(
SpacesController.provider,
);
@ -152,14 +152,14 @@ class const NotificationsPage({
);
if (space == null) return;
ref
await ref
.read(
KeyController.provider(
KeyController.spaceKey,
).notifier,
)
.set(space.id);
ref
await ref
.read(
KeyController.provider(
KeyController.roomKey,
@ -167,14 +167,16 @@ class const NotificationsPage({
)
.set(event.roomId);
ref
.read(
JumpToEventController
.provider
.notifier,
.watch(
JumpToEventController.provider(
event.roomId,
).notifier,
)
.set(event.eventId);
Navigator.of(context).pop();
if (context.mounted) {
Navigator.of(context).pop();
}
},
child: IgnorePointer(
child: EventRenderer(event),