mirror of
https://github.com/status-im/matterbridge.git
synced 2025-03-04 07:30:31 +00:00
fix missing username prefix in Status messages
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
60a468f733
commit
6bee1c273d
@ -158,8 +158,9 @@ func (b *Bstatus) Connected() bool {
|
||||
func genStatusMsg(msg config.Message) (sMsg *status.Message) {
|
||||
sMsg = &status.Message{}
|
||||
sMsg.ChatId = msg.Channel
|
||||
sMsg.Text = msg.Text
|
||||
sMsg.ContentType = protobuf.ChatMessage_TEXT_PLAIN
|
||||
// We need to prefix messages with usernames
|
||||
sMsg.Text = fmt.Sprintf("%s%s", msg.Username, msg.Text)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user