5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-09 16:50:30 +00:00

Fix displaying usernames for plain text clients. (matrix) (#685)

This commit is contained in:
David Hill 2019-01-09 22:15:26 +00:00 committed by Wim
parent da6ce791bc
commit f88c5f6c08

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
}