named records, small fixes to last commit

This commit is contained in:
Henry Hiles 2026-09-28 13:17:15 -04:00
commit 07f8e58a4c
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
5 changed files with 48 additions and 35 deletions

View file

@ -65,8 +65,8 @@ class const ReactionRow(final Event event, {super.key}) extends ConsumerWidget {
try {
final controller = ref.watch(
RoomChatController.provider((
event.roomId,
null,
roomId: event.roomId,
contextualEvent: null,
)).notifier,
);

View file

@ -62,10 +62,13 @@ final class const RoomChat({
final roomId = this.roomId!;
final controllerProvider = RoomChatController.provider((
roomId,
contextualEvent.value == null
roomId: roomId,
contextualEvent: contextualEvent.value == null
? null
: (contextualEvent.value!.rowId, contextualEvent.value!.eventId),
: (
rowId: contextualEvent.value!.rowId,
eventId: contextualEvent.value!.eventId,
),
));
final notifier = ref.watch(controllerProvider.notifier);