only send message if it's non-empty

This commit is contained in:
Bruno Windels 2019-07-29 19:54:21 +02:00
parent 8665bcb897
commit 7218595c17

View file

@ -65,6 +65,8 @@ export default class RoomViewModel extends EventEmitter {
}
sendMessage(message) {
if (message) {
this._room.sendEvent("m.room.message", {msgtype: "m.text", body: message});
}
}
}