Page MenuHomePhorge

D14217.1768785670.diff
No OneTemporary

Size
601 B
Referenced Files
None
Subscribers
None

D14217.1768785670.diff

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);

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 19, 1:21 AM (15 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5953771
Default Alt Text
D14217.1768785670.diff (601 B)

Event Timeline