From 44144587a0314b7e2c719d279116ac86b657657e Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 1 Sep 2016 00:15:48 +0200 Subject: Get correct teamname for non-joined channels. Closes 42wim/matterircd#65 --- matterclient/matterclient.go | 1 + 1 file changed, 1 insertion(+) diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index f3e188a0..0ee8fff1 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -523,6 +523,7 @@ func (m *MMClient) GetTeamFromChannel(channelId string) string { var channels []*model.Channel for _, t := range m.OtherTeams { channels = append(channels, t.Channels.Channels...) + channels = append(channels, t.MoreChannels.Channels...) for _, c := range channels { if c.Id == channelId { return t.Id -- cgit v1.2.3