avoid leading space in HTML /me too

This commit is contained in:
Matthew Hodgson 2017-03-19 21:33:18 +00:00 committed by GitHub
parent c697b48f99
commit bf8973ad33

View file

@ -543,7 +543,7 @@ export default class MessageComposerInput extends React.Component {
if (contentText.startsWith('/me')) {
contentText = contentText.replace('/me ', '');
// bit of a hack, but the alternative would be quite complicated
if (contentHTML) contentHTML = contentHTML.replace('/me', '');
if (contentHTML) contentHTML = contentHTML.replace('/me ', '');
sendHtmlFn = this.client.sendHtmlEmote;
sendTextFn = this.client.sendEmoteMessage;
}