From ff65e70749cb5012a693789d96f3a28bdf800baa Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 9 Jan 2019 16:41:10 -0500 Subject: [PATCH] matrix: fix displaying usernames for plain text clients. --- bridge/matrix/matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 12f50e8d..45f26c71 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -114,7 +114,7 @@ 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 }