|
|
|
@ -159,6 +159,7 @@ func handleMessage(api keybase.ChatAPI, g *gocui.Gui) {
@@ -159,6 +159,7 @@ func handleMessage(api keybase.ChatAPI, g *gocui.Gui) {
|
|
|
|
|
msgBody := api.Msg.Content.Text.Body |
|
|
|
|
msgSender := api.Msg.Sender.Username |
|
|
|
|
channelName := api.Msg.Channel.Name |
|
|
|
|
if msgSender != k.Username { |
|
|
|
|
if api.Msg.Channel.MembersType == keybase.TEAM { |
|
|
|
|
topicName := api.Msg.Channel.TopicName |
|
|
|
|
for _, m := range api.Msg.Content.Text.UserMentions { |
|
|
|
@ -170,6 +171,7 @@ func handleMessage(api keybase.ChatAPI, g *gocui.Gui) {
@@ -170,6 +171,7 @@ func handleMessage(api keybase.ChatAPI, g *gocui.Gui) {
|
|
|
|
|
} else { |
|
|
|
|
printToView(g, "Feed", fmt.Sprintf("[ %s ] %s: %s", channelName, msgSender, msgBody)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if api.Msg.Channel.MembersType == channel.MembersType && cleanChannelName(api.Msg.Channel.Name) == channel.Name { |
|
|
|
|
printToView(g, "Chat", fmt.Sprintf("%s: %s", msgSender, msgBody)) |
|
|
|
|
} |
|
|
|
|