Skip to content

Commit

Permalink
Channel Type: Detect more private channels
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdecook committed Aug 19, 2022
1 parent 581d791 commit dbad498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ircslack/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *Channel) IsPublicChannel() bool {

// IsPrivateChannel returns true if the channel is private.
func (c *Channel) IsPrivateChannel() bool {
return c.IsGroup && c.IsPrivate
return (c.IsGroup||c.IsChannel) && c.IsPrivate
}

// IsMP returns true if it is a multi-party conversation.
Expand Down

0 comments on commit dbad498

Please sign in to comment.