浏览代码

feat: priority 0 on actions from mobile client

Fela Maslen 4 年之前
父节点
当前提交
ba7b51d2cd
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      gmus-mobile/lib/controller.dart

+ 2 - 0
gmus-mobile/lib/controller.dart

@@ -94,6 +94,7 @@ class Controller extends GetxController {
     if (!this._isMaster()) {
       this.socket.dispatch(jsonEncode({
         'type': actions.STATE_SET,
+        'priority': 0,
         'payload': this.player.value.stringify(),
       }));
     }
@@ -111,6 +112,7 @@ class Controller extends GetxController {
 
     this.socket.dispatch(jsonEncode({
       'type': actions.STATE_SET,
+      'priority': 0,
       'payload': this.player.value.stringify(),
     }));
   }