Transform Gitter MXID from Matrix into a Gitter mention
Transform Gitter MXID from Matrix into a Gitter mention
Fix #2652 (closed)
Testing strategy
- Send a message from Gitter to get the new bridged MXID created
- Send a new message from Matrix mentioning that Gitter MXID that was just created
- Notice the message in Gitter has the MXID replaced with their Gitter username mention
This one isn't probably easy to test locally if you just have a localhost
synapse. But there is a test for this.
- Send a new message from Matrix mentioning some MXID that isn't from the Gitter homeserver
- Notice the message in Gitter links the MXID with https://matrix.to/
Todo
- Colons next to usernames is a problem. Address in another MR -> #2654 (closed)
Edited by Eric Eastwood