Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix extraneous leading space in sent emotes #764

Merged
merged 2 commits into from
Mar 19, 2017

Conversation

lieuwex
Copy link
Contributor

@lieuwex lieuwex commented Mar 19, 2017

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@@ -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', '');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see I missed this one, I'm not sure if it's needed for the HTML though, since I think that HTML collapses multiple spaces.

@ara4n
Copy link
Member

ara4n commented Mar 19, 2017

lgtm - thanks!!

@ara4n ara4n merged commit f65cc94 into matrix-org:develop Mar 19, 2017
@lieuwex lieuwex deleted the fix-extraneous-space-emote branch March 19, 2017 21:39
martindale pushed a commit to FabricLabs/matrix-react-sdk that referenced this pull request Dec 8, 2018
…uting

Support `request` in the browser and support supplying servers to try in joinRoom()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants