i am a Dam Fool

This commit is contained in:
Cori Hudson
2019-08-23 23:47:35 -04:00
parent 6b6038d6b0
commit 377a67208d

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, UserID: msg.Sender.Uid, Channel: msg.Channel.TopicName, ID: strconv.Itoa(msg.MsgID), Account: b.Account}
rmsg := config.Message{Username: msg.Sender.Username, Text: msg.Content.Text.Body, 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" {