Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
b48e9457b8 |
2 changed files with 88 additions and 84 deletions
|
|
@ -21,7 +21,9 @@ 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 switch (ref.watch(
|
return Padding(
|
||||||
|
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),
|
||||||
),
|
),
|
||||||
|
|
@ -60,7 +62,9 @@ class ReactionRow extends ConsumerWidget {
|
||||||
clientState!.homeserverUrl!,
|
clientState!.homeserverUrl!,
|
||||||
)
|
)
|
||||||
.toString(),
|
.toString(),
|
||||||
ref.watch(CrossCacheController.provider),
|
ref.watch(
|
||||||
|
CrossCacheController.provider,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Text(reaction, overflow: .ellipsis),
|
: Text(reaction, overflow: .ellipsis),
|
||||||
|
|
@ -108,6 +112,7 @@ class ReactionRow extends ConsumerWidget {
|
||||||
error,
|
error,
|
||||||
stackTrace,
|
stackTrace,
|
||||||
),
|
),
|
||||||
};
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,6 @@ 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),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue