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,16 +83,18 @@ func (s *SlackService) GetChannels() []Channel {
chans = append(chans, Channel{})
}
for _, chn := range slackChans {
s.SlackChannels = append(s.SlackChannels, chn)
chans = append(
chans, Channel{
ID: chn.ID,
Name: chn.Name,
Topic: chn.Topic.Value,
Type: ChannelTypeChannel,
UserID: "",
},
)
if chn.IsMember {
s.SlackChannels = append(s.SlackChannels, chn)
chans = append(
chans, Channel{
ID: chn.ID,
Name: chn.Name,
Topic: chn.Topic.Value,
Type: ChannelTypeChannel,
UserID: "",
},
)
}
}
// Groups