Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33304068
D14217.1768785670.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
601 B
Referenced Files
None
Subscribers
None
D14217.1768785670.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14217: [native] fix creating new device list in `reorderAndSignDeviceList`
Attached
Detach File
Event Timeline
Log In to Comment