Fix some channels issues
* Reset notification icon to asterisk (Fixes #67) * Only show subscribed channels
This commit is contained in:
parent
eebee7027e
commit
e10fef8b9d
@ -15,7 +15,7 @@ const (
|
||||
IconChannel = "#"
|
||||
IconGroup = "☰"
|
||||
IconIM = "●"
|
||||
IconNotification = "🞷"
|
||||
IconNotification = "*"
|
||||
|
||||
PresenceAway = "away"
|
||||
PresenceActive = "active"
|
||||
|
@ -83,6 +83,7 @@ func (s *SlackService) GetChannels() []Channel {
|
||||
chans = append(chans, Channel{})
|
||||
}
|
||||
for _, chn := range slackChans {
|
||||
if chn.IsMember {
|
||||
s.SlackChannels = append(s.SlackChannels, chn)
|
||||
chans = append(
|
||||
chans, Channel{
|
||||
@ -94,6 +95,7 @@ func (s *SlackService) GetChannels() []Channel {
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// Groups
|
||||
slackGroups, err := s.Client.GetGroups(true)
|
||||
|
Loading…
Reference in New Issue
Block a user