mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Fix playlist visibility: wait for U_HAS_CHANNEL_RANK instead of just login
This commit is contained in:
parent
d8b9e3dab6
commit
41a538c655
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue