fix: clear chat before async

This commit is contained in:
2025-05-13 12:05:41 +01:00
parent f8a2df0097
commit 1a912e88ce

View File

@ -454,9 +454,9 @@ class __WriteMessageWidget extends State<_WriteMessageWidget> {
["a", widget.stream.aTag],
],
);
_controller.text = "";
final res = ndk.broadcast.broadcast(nostrEvent: chatMsg);
await res.broadcastDoneFuture;
_controller.text = "";
}
@override