mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
require space after /me
This commit is contained in:
parent
67c3fb1910
commit
d1a95c664d
@ -147,8 +147,8 @@ export class RoomViewModel extends ViewModel {
|
||||
if (message) {
|
||||
try {
|
||||
let msgtype = "m.text";
|
||||
if (message.startsWith("/me")) {
|
||||
message = message.substr(3).trim();
|
||||
if (message.startsWith("/me ")) {
|
||||
message = message.substr(4).trim();
|
||||
msgtype = "m.emote";
|
||||
}
|
||||
await this._room.sendEvent("m.room.message", {msgtype, body: message});
|
||||
|
Loading…
Reference in New Issue
Block a user