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

@@ -19,7 +19,7 @@ var Channel = (function () {
_createClass(Channel, [{
key: "equals",
value: function equals(object) {
return object.id === this.id;
return object && object.id === this.id;
}
}, {
key: "addMessage",
@@ -76,4 +76,4 @@ var Channel = (function () {
return Channel;
})();
module.exports = Channel;
module.exports = Channel;