mirror of https://github.com/calzoneman/sync.git
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",
|
||||
"name": "CyTube",
|
||||
"description": "Online media synchronizer and chat",
|
||||
"version": "3.34.2",
|
||||
"version": "3.34.3",
|
||||
"repository": {
|
||||
"url": "http://github.com/calzoneman/sync"
|
||||
},
|
||||
|
|
|
@ -224,7 +224,7 @@ PlaylistModule.prototype.onUserPostJoin = function (user) {
|
|||
self.sendChangeMedia([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]);
|
||||
});
|
||||
user.socket.on("clearPlaylist", this.handleClear.bind(this, user));
|
||||
|
|
Loading…
Reference in New Issue