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,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
|
||||
|
Loading…
Reference in New Issue
Block a user