diff options
author | Wim <wim@42.be> | 2016-09-01 00:15:48 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-09-01 00:15:48 +0200 |
commit | 44144587a0314b7e2c719d279116ac86b657657e (patch) | |
tree | f4fa898f26720db7d78247f20f909d57a54d68e8 /matterclient | |
parent | d0a30e354b5b6dc34bde204c90bc25dcd5b155e0 (diff) | |
download | matterbridge-msglm-44144587a0314b7e2c719d279116ac86b657657e.tar.gz matterbridge-msglm-44144587a0314b7e2c719d279116ac86b657657e.tar.bz2 matterbridge-msglm-44144587a0314b7e2c719d279116ac86b657657e.zip |
Get correct teamname for non-joined channels. Closes 42wim/matterircd#65
Diffstat (limited to 'matterclient')
-rw-r--r-- | matterclient/matterclient.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |