Join Server returns server properly

Previously if the client was already part of a server and attempted to
accept an invite to it again, it would stall and not work correctly.
This commit is contained in:
hydrabolt
2015-08-28 17:49:47 +01:00
parent 7300dec912
commit 1c8c9d2da3
12 changed files with 22 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ class Channel {
}
equals(object) {
return object.id === this.id;
return (object && object.id === this.id);
}
addMessage(data){