Refactor IsPublic function

A Function to check is the channel is private or presence already exists
This commit is contained in:
claudemiro
2015-01-12 21:50:34 -03:00
parent 387a2ae28d
commit 71d5099ac3
+1 -1
View File
@@ -61,7 +61,7 @@ func (c *Channel) IsPresenceOrPrivate() bool {
// Check if the type of the channel is public
func (c *Channel) IsPublic() bool {
return !c.IsPresence() && !c.IsPrivate()
return !c.IsPresenceOrPrivate()
}
// Check if the type of the channel is presence