Skip to content

Commit 9631b9e

Browse files
committed
update IsMember logic to fallback to C prefix
1 parent 9b93667 commit 9631b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/structures/conversation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func ChannelFromID(id string) *slack.Channel {
5959

6060
// IsMember returns true if the user is a member of a given Slack Channel.
6161
func IsMember(ch *slack.Channel) bool {
62-
if ChannelType(*ch) != CPublic {
62+
if ChannelType(*ch) != CPublic || (ch.ID != "" && ch.ID[0] != 'C') {
6363
// user is assumed to be a member of any non-public channels.
6464
return true
6565
}

0 commit comments

Comments
 (0)