feat: Send reactions to multiple events
This commit is contained in:
parent
9e641c8ee4
commit
cbf8e0799e
3 changed files with 56 additions and 50 deletions
|
|
@ -631,14 +631,14 @@ class ChatController extends State<Chat> {
|
|||
}
|
||||
|
||||
void sendEmojiAction(String emoji) async {
|
||||
await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () => room.sendReaction(
|
||||
selectedEvents.single.eventId,
|
||||
emoji,
|
||||
),
|
||||
);
|
||||
final events = List<Event>.from(selectedEvents);
|
||||
setState(() => selectedEvents.clear());
|
||||
for (final event in events) {
|
||||
await room.sendReaction(
|
||||
event.eventId,
|
||||
emoji,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void clearSelectedEvents() => setState(() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue