Only show channels if it exists in the channels list

This commit is contained in:
Peter Stuifzand 2018-06-30 15:50:04 +02:00
parent b7b706368a
commit 9e4c93a389

View File

@ -151,7 +151,9 @@ func (b *memoryBackend) ChannelsGetList() []microsub.Channel {
} }
} else { } else {
for _, uid := range uids { for _, uid := range uids {
channels = append(channels, b.Channels[uid]) if c, e := b.Channels[uid]; e {
channels = append(channels, c)
}
} }
} }
return channels return channels