You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
fix leading extraneous space in emotes
This commit is contained in:
@@ -541,7 +541,7 @@ export default class MessageComposerInput extends React.Component {
|
||||
let sendTextFn = this.client.sendTextMessage;
|
||||
|
||||
if (contentText.startsWith('/me')) {
|
||||
contentText = contentText.replace('/me', '');
|
||||
contentText = contentText.replace('/me ', '');
|
||||
// bit of a hack, but the alternative would be quite complicated
|
||||
if (contentHTML) contentHTML = contentHTML.replace('/me', '');
|
||||
sendHtmlFn = this.client.sendHtmlEmote;
|
||||
|
Reference in New Issue
Block a user