Fix colon next to Gitter username mangling the mention
When you send a message like @MadLittleMods: hey there
, the colon(:
) is included in the mention and the user doesn't get notified.
The Element client for Matrix puts a colon after the mention pill
This is a bigger problem also because Element(the Matrix client), adds mentions with the colon whenever you click on the name to reference it.
ex. MadLittleMods (Eric Eastwood): Hey there
This is also the case when you click the name in the middle of a sentence. As an aside, I created https://github.com/vector-im/element-web/issues/15794 to track possibly changing that behavior in Element.
ex. Hey there MadLittleMods (Eric Eastwood):
Relevant code
- This regressed when we added support for MXID's as mentions, see gitter-marked!14 (merged)