matrix: fix displaying usernames for plain text clients.

This commit is contained in:
David Hill
2019-01-09 16:41:10 -05:00
parent b33b50987b
commit ff65e70749

View File

@@ -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
}