mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-18 17:12:37 +01:00
Get correct teamname for non-joined channels. Closes 42wim/matterircd#65
This commit is contained in:
parent
d0a30e354b
commit
44144587a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user