2 次代码提交 c00bb438b7 ... 3fec58e8a8

作者 SHA1 备注 提交日期
  Fela Maslen 3fec58e8a8 chore: updated mobile tests 4 年之前
  Fela Maslen c00bb438b7 chore: updated mobile tests 4 年之前
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      gmus-mobile/lib/socket.dart

+ 6 - 0
gmus-mobile/lib/socket.dart

@@ -120,12 +120,18 @@ void onRemoteMessage(Controller controller, String message) {
       nextPlayer.master = action['payload']['master'];
       nextPlayer.songId = action['payload']['songId'];
       nextPlayer.playing = action['payload']['playing'];
+      nextPlayer.shuffleMode = action['payload']['shuffleMode'];
 
       nextPlayer.queue = [];
       for (var i = 0; i < action['payload']['queue'].length; i++) {
         nextPlayer.queue.add(action['payload']['queue'][i]);
       }
 
+      nextPlayer.activeClients = [];
+      for (var i = 0; i < action['payload']['activeClients'].length; i++) {
+        nextPlayer.activeClients.add(action['payload']['activeClients'][i]);
+      }
+
       controller.player.value = nextPlayer;
 
       break;