potential loading time optimization
This commit is contained in:
parent
e9b78a14d5
commit
07decc10e2
1 changed files with 11 additions and 9 deletions
|
|
@ -68,7 +68,9 @@ class MessageController extends AsyncNotifier<Message?> {
|
|||
final replyId =
|
||||
config.event.content["m.relates_to"]?["m.in_reply_to"]?["event_id"];
|
||||
|
||||
final reactionEvents = await ref
|
||||
final reactionEvents = event.reactions.isEmpty
|
||||
? null
|
||||
: await ref
|
||||
.watch(ClientController.provider.notifier)
|
||||
.getRelatedEvents(
|
||||
GetRelatedEventsRequest(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue