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

View file

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