Browse Source

Bugfix: Big teams messages were bleeding into chat feed causing confusion

pull/1/head
Gregory Rudolph 5 years ago
parent
commit
35bdb9f166
  1. 5
      main.go

5
main.go

@ -303,10 +303,15 @@ func handleMessage(api keybase.ChatAPI, g *gocui.Gui) { @@ -303,10 +303,15 @@ func handleMessage(api keybase.ChatAPI, g *gocui.Gui) {
}
}
if api.Msg.Channel.MembersType == channel.MembersType && cleanChannelName(api.Msg.Channel.Name) == channel.Name {
if channel.MembersType == keybase.TEAM && channel.TopicName != api.Msg.Channel.TopicName {
// Do nothing, wrong channel
} else {
printToView(g, "Chat", formatOutput(api))
chat := k.NewChat(channel)
lastMessage.ID = api.Msg.ID
chat.Read(api.Msg.ID)
}
}
} else {

Loading…
Cancel
Save