Compare commits

..
2 changed files with 84 additions and 88 deletions

View file

@ -21,9 +21,7 @@ class ReactionRow extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final clientState = ref.watch(ClientStateController.provider);
return Padding(
padding: .only(top: 4),
child: switch (ref.watch(
return switch (ref.watch(
ReactionsController.provider(
.new(roomId: event.roomId, eventRowId: event.rowId),
),
@ -62,9 +60,7 @@ class ReactionRow extends ConsumerWidget {
clientState!.homeserverUrl!,
)
.toString(),
ref.watch(
CrossCacheController.provider,
),
ref.watch(CrossCacheController.provider),
),
)
: Text(reaction, overflow: .ellipsis),
@ -112,7 +108,6 @@ class ReactionRow extends ConsumerWidget {
error,
stackTrace,
),
},
);
};
}
}

View file

@ -271,6 +271,7 @@ class MessageRenderer extends ConsumerWidget {
case final UrlElement link?)
UrlPreview(link.url),
SizedBox(height: 4),
ReactionRow(event),
],
],