Browse Source

feat: priority 0 on actions from mobile client

Fela Maslen 4 năm trước cách đây
mục cha
commit
ba7b51d2cd
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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(),
     }));
   }