From 7f6cb9e7779d11f030c67ca04adee8ab01979b3f Mon Sep 17 00:00:00 2001 From: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:12:07 -0400 Subject: [PATCH] Fix join sync group on mobile --- apps/mobile/src/screens/settings/info/Debug.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/mobile/src/screens/settings/info/Debug.tsx b/apps/mobile/src/screens/settings/info/Debug.tsx index 1c4689d14..e5c074909 100644 --- a/apps/mobile/src/screens/settings/info/Debug.tsx +++ b/apps/mobile/src/screens/settings/info/Debug.tsx @@ -38,8 +38,8 @@ const DebugScreen = ({ navigation }: SettingsStackScreenProps<'Debug'>) => { const getGroup = useBridgeQuery([ 'cloud.syncGroups.get', { - pub_id: '0192376a-19ff-73a0-98ac-c4fa4043d401', - kind: 'FullData' + pub_id: '01924497-a1be-76e3-b62f-9582ea15463a', + kind: 'WithDevices' } ]); // console.log(getGroup.data); @@ -126,8 +126,11 @@ const DebugScreen = ({ navigation }: SettingsStackScreenProps<'Debug'>) => { console.log('Current Device: ', currentDevice.data); console.log('Get Group: ', getGroup.data); requestJoinSyncGroup.mutate({ - sync_group: - getGroup.data! as unknown as CloudSyncGroupWithLibraryAndDevices, + sync_group: ( + getGroup.data! as unknown as { + WithDevices: CloudSyncGroupWithLibraryAndDevices; + } + ).WithDevices, asking_device: currentDevice.data! }); }}