Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 05f20bc2d427cf91a3f518c92e8a21b1edee832e Author: David Hill <dhill@mindcry.org> Date: Wed Jan 09 22:15:26 2019 +0000 Fix displaying usernames for plain text clients. (matrix) (#685) diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 12f50e8..45f26c7 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -1147 +1147 @@ func (b *Bmatrix) Send(msg config.Message) (string, error) {   // matrix has no editing support     // Post normal message with HTML support (eg riot.im) - resp, err := b.mc.SendHTML(channel, msg.Text, html.EscapeString(msg.Username)+helper.ParseMarkdown(msg.Text)) + resp, err := b.mc.SendHTML(channel, msg.Username+msg.Text, html.EscapeString(msg.Username)+helper.ParseMarkdown(msg.Text))   if err != nil {   return "", err   }