Fix playlist visibility: wait for U_HAS_CHANNEL_RANK instead of just login
This commit is contained in:
parent
d8b9e3dab6
commit
41a538c655
|
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.34.2",
|
"version": "3.34.3",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ PlaylistModule.prototype.onUserPostJoin = function (user) {
|
||||||
self.sendChangeMedia([user]);
|
self.sendChangeMedia([user]);
|
||||||
});
|
});
|
||||||
user.socket.on("requestPlaylist", this.handleRequestPlaylist.bind(this, user));
|
user.socket.on("requestPlaylist", this.handleRequestPlaylist.bind(this, user));
|
||||||
user.on("login", function () {
|
user.waitFlag(Flags.U_HAS_CHANNEL_RANK, function () {
|
||||||
self.sendPlaylist([user]);
|
self.sendPlaylist([user]);
|
||||||
});
|
});
|
||||||
user.socket.on("clearPlaylist", this.handleClear.bind(this, user));
|
user.socket.on("clearPlaylist", this.handleClear.bind(this, user));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue