From 71d5099ac3602600e08bd00b964705f5b5b51062 Mon Sep 17 00:00:00 2001 From: claudemiro Date: Mon, 12 Jan 2015 21:50:34 -0300 Subject: [PATCH] Refactor IsPublic function A Function to check is the channel is private or presence already exists --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index 50e017b..6d9f75c 100644 --- a/conn.go +++ b/conn.go @@ -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