add reply ui

This commit is contained in:
Henry Hiles 2025-11-12 21:57:50 -05:00
commit 8bc010cfc7
No known key found for this signature in database
2 changed files with 70 additions and 11 deletions

View file

@ -43,10 +43,10 @@ class RoomChatController extends AsyncNotifier<ChatController> {
return controller.updateMessage(message, newMessage);
}
Future<void> send(String message, {String? replyTo}) async =>
Future<void> send(String message, {Message? replyTo}) async =>
await room.sendTextEvent(
message,
inReplyTo: replyTo == null ? null : await room.getEventById(replyTo),
inReplyTo: replyTo == null ? null : await room.getEventById(replyTo.id),
);
Future<chat.User> resolveUser(String id) async {