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
|
|
@ -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
Add a link
Reference in a new issue