mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
web/roomview: clear input after sending
This commit is contained in:
parent
b23f2913e0
commit
3f2ca03128
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ const RoomView = ({ room }: RoomViewProps) => {
|
|||
const roomMeta = useNonNullEventAsState(room.meta)
|
||||
const sendMessage = (evt: React.FormEvent) => {
|
||||
evt.preventDefault()
|
||||
setText("")
|
||||
client.rpc.sendMessage(room.roomID, "m.room.message", {
|
||||
body: text,
|
||||
msgtype: "m.text",
|
||||
|
|
Loading…
Add table
Reference in a new issue