Fix playlist visibility: wait for U_HAS_CHANNEL_RANK instead of just login

This commit is contained in:
Calvin Montgomery 2017-03-18 18:53:37 -07:00
parent d8b9e3dab6
commit 41a538c655
2 changed files with 2 additions and 2 deletions

View file

@ -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"
},

View file

@ -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));