add account and userid

This commit is contained in:
Cori Hudson
2019-08-23 23:45:15 -04:00
parent 23ab436e4e
commit 6b6038d6b0

View File

@@ -125,7 +125,7 @@ func (b *Bkeybase) handleEvent(msg kbchat.Message) {
// TODO download avatar
// Create our message
rmsg := config.Message{Username: msg.Sender.Username, Channel: msg.Channel.TopicName, ID: strconv.Itoa(msg.MsgID)}
rmsg := config.Message{Username: msg.Sender.Username, UserID: msg.Sender.Uid, Channel: msg.Channel.TopicName, ID: strconv.Itoa(msg.MsgID), Account: b.Account}
// Text must be a string
if msg.Content.Type != "text" {