mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-01 11:03:18 +03:00
avoid leading space in HTML /me too
This commit is contained in:
parent
c697b48f99
commit
bf8973ad33
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue