fix missing username prefix in Status messages

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-02-12 17:09:02 +01:00
parent 60a468f733
commit 6bee1c273d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

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