From d1a95c664d3326f42ff5f439badb6592ad336fbd Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 16 Nov 2020 19:29:29 +0100 Subject: [PATCH] require space after /me --- src/domain/session/room/RoomViewModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index c13dd1a3..10be15a7 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -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});