From 35bdb9f16601122bad405be026c492bd5ae0c152 Mon Sep 17 00:00:00 2001
From: Gregory Rudolph <rudi9719@keybase.io>
Date: Wed, 2 Oct 2019 07:59:46 -0400
Subject: [PATCH] Bugfix: Big teams messages were bleeding into chat feed
 causing confusion

---
 main.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/main.go b/main.go
index 0e46e3d..0b3990c 100644
--- a/main.go
+++ b/main.go
@@ -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 {