dedupe replies
This commit is contained in:
parent
2a4525a78f
commit
1d03b09775
7 changed files with 86 additions and 41 deletions
|
|
@ -43,9 +43,11 @@ class RoomChatController extends AsyncNotifier<ChatController> {
|
|||
return controller.updateMessage(message, newMessage);
|
||||
}
|
||||
|
||||
Future<void> send(String message) async {
|
||||
await room.sendTextEvent(message);
|
||||
}
|
||||
Future<void> send(String message, {String? replyTo}) async =>
|
||||
await room.sendTextEvent(
|
||||
message,
|
||||
inReplyTo: replyTo == null ? null : await room.getEventById(replyTo),
|
||||
);
|
||||
|
||||
Future<chat.User> resolveUser(String id) async {
|
||||
final user = await room.client.getUserProfile(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue