forked from mystiq/hydrogen-web
only send message if it's non-empty
This commit is contained in:
parent
8665bcb897
commit
7218595c17
1 changed files with 3 additions and 1 deletions
|
@ -65,6 +65,8 @@ export default class RoomViewModel extends EventEmitter {
|
|||
}
|
||||
|
||||
sendMessage(message) {
|
||||
this._room.sendEvent("m.room.message", {msgtype: "m.text", body: message});
|
||||
if (message) {
|
||||
this._room.sendEvent("m.room.message", {msgtype: "m.text", body: message});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue