forked from mystiq/hydrogen-web
require space after /me
This commit is contained in:
parent
67c3fb1910
commit
d1a95c664d
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ export class RoomViewModel extends ViewModel {
|
||||||
try {
|
try {
|
||||||
let msgtype = "m.text";
|
let msgtype = "m.text";
|
||||||
if (message.startsWith("/me ")) {
|
if (message.startsWith("/me ")) {
|
||||||
message = message.substr(3).trim();
|
message = message.substr(4).trim();
|
||||||
msgtype = "m.emote";
|
msgtype = "m.emote";
|
||||||
}
|
}
|
||||||
await this._room.sendEvent("m.room.message", {msgtype, body: message});
|
await this._room.sendEvent("m.room.message", {msgtype, body: message});
|
||||||
|
|
Loading…
Reference in a new issue