1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 12:07:23 +00:00

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

This commit is contained in:
Gregory Rudolph
2019-10-02 07:59:46 -04:00
parent 8f61d68196
commit 35bdb9f166

View File

@ -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 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)) printToView(g, "Chat", formatOutput(api))
chat := k.NewChat(channel) chat := k.NewChat(channel)
lastMessage.ID = api.Msg.ID lastMessage.ID = api.Msg.ID
chat.Read(api.Msg.ID) chat.Read(api.Msg.ID)
}
} }
} else { } else {