diff --git a/native/backup/use-migration-to-new-flow.js b/native/backup/use-migration-to-new-flow.js --- a/native/backup/use-migration-to-new-flow.js +++ b/native/backup/use-migration-to-new-flow.js @@ -43,7 +43,10 @@ const newDevices = thisDeviceIndex === 0 ? currentDevices - : [thisDeviceID, ...currentDevices.splice(thisDeviceIndex, 1)]; + : [ + thisDeviceID, + ...currentDevices.filter(deviceID => deviceID !== thisDeviceID), + ]; const rawList = composeRawDeviceList(newDevices); const signedList = await signDeviceListUpdate(rawList);