add reply ui
This commit is contained in:
parent
1d03b09775
commit
8bc010cfc7
2 changed files with 70 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue