Refactor IsPublic function
A Function to check is the channel is private or presence already exists
This commit is contained in:
@@ -61,7 +61,7 @@ func (c *Channel) IsPresenceOrPrivate() bool {
|
|||||||
|
|
||||||
// Check if the type of the channel is public
|
// Check if the type of the channel is public
|
||||||
func (c *Channel) IsPublic() bool {
|
func (c *Channel) IsPublic() bool {
|
||||||
return !c.IsPresence() && !c.IsPrivate()
|
return !c.IsPresenceOrPrivate()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the type of the channel is presence
|
// Check if the type of the channel is presence
|
||||||
|
|||||||
Reference in New Issue
Block a user