We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b93667 commit 9631b9eCopy full SHA for 9631b9e
internal/structures/conversation.go
@@ -59,7 +59,7 @@ func ChannelFromID(id string) *slack.Channel {
59
60
// IsMember returns true if the user is a member of a given Slack Channel.
61
func IsMember(ch *slack.Channel) bool {
62
- if ChannelType(*ch) != CPublic {
+ if ChannelType(*ch) != CPublic || (ch.ID != "" && ch.ID[0] != 'C') {
63
// user is assumed to be a member of any non-public channels.
64
return true
65
}
0 commit comments