1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 08:47:24 +00:00

Bugfix where PMs wouldn't auto-update chat view

This commit is contained in:
Gregory Rudolph
2019-10-17 08:50:54 -04:00
parent d528568137
commit 09953ead7d

View File

@ -580,7 +580,7 @@ func handleMessage(api keybase.ChatAPI) {
}
}
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 {
if channel.MembersType == keybase.USER || channel.MembersType == keybase.TEAM && channel.TopicName == api.Msg.Channel.TopicName {
printToView("Chat", formatOutput(api))
chat := k.NewChat(channel)
lastMessage.ID = api.Msg.ID