forked from mystiq/hydrogen-web
Some fixes :
- fixed a pretty syntax miss (a !== b); - fixed a type error : replaced "msgtype" by "type" when instantied the "messinfo" variable; - some indentation fixes
This commit is contained in:
parent
ab64ce02b2
commit
a40bb59dc0
1 changed files with 10 additions and 10 deletions
|
@ -273,7 +273,7 @@ export class RoomViewModel extends ViewModel {
|
|||
|
||||
async _sendMessage(message, replyingTo) {
|
||||
if (!this._room.isArchived && message) {
|
||||
let messinfo = {msgtype : "m.text", message : message};
|
||||
let messinfo = {type : "m.text", message : message};
|
||||
if (message.startsWith("//")) {
|
||||
messinfo.message = message.substring(1).trim();
|
||||
} else if (message.startsWith("/")) {
|
||||
|
|
Loading…
Reference in a new issue