1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

fix zero-length /me

This commit is contained in:
Matthew Hodgson
2016-03-16 19:52:24 +00:00
parent bb918f198b
commit 87e1bc2f07

View File

@@ -314,7 +314,7 @@ module.exports = React.createClass({
return; return;
} }
var isEmote = /^\/me /i.test(contentText); var isEmote = /^\/me( |$)/i.test(contentText);
var sendMessagePromise; var sendMessagePromise;
if (isEmote) { if (isEmote) {