fix emote messages (/me)

This commit is contained in:
Sorunome 2020-05-15 18:44:59 +02:00
parent 729f1f3b78
commit 39637b6c91
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -483,7 +483,7 @@ class Room {
'body': message,
};
if (message.startsWith('/me ')) {
event['type'] = 'm.emote';
event['msgtype'] = 'm.emote';
event['body'] = message.substring(4);
}
if (parseMarkdown) {