Fix some channels issues

* Reset notification icon to asterisk (Fixes #67)

* Only show subscribed channels
This commit is contained in:
erroneousboat 2017-12-01 11:19:54 +01:00
parent eebee7027e
commit e10fef8b9d
2 changed files with 13 additions and 11 deletions

View File

@ -15,7 +15,7 @@ const (
IconChannel = "#"
IconGroup = "☰"
IconIM = "●"
IconNotification = "🞷"
IconNotification = "*"
PresenceAway = "away"
PresenceActive = "active"

View File

@ -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)