Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32126763
D15505.1765023582.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
874 B
Referenced Files
None
Subscribers
None
D15505.1765023582.diff
View Options
diff --git a/native/backup/backup-handler-context-provider.js b/native/backup/backup-handler-context-provider.js
--- a/native/backup/backup-handler-context-provider.js
+++ b/native/backup/backup-handler-context-provider.js
@@ -251,7 +251,12 @@
step = 'computing conditions';
const shouldDoMigration =
usingRestoreFlow && !currentDeviceList.curPrimarySignature;
- const shouldUploadUserKeys = isPrimary && !latestBackupInfo;
+
+ const userKeyUploadFailed =
+ restoreBackupState.status === 'user_keys_backup_failed' ||
+ restoreBackupState.status === 'user_keys_backup_started';
+ const shouldUploadUserKeys =
+ isPrimary && (!latestBackupInfo || userKeyUploadFailed);
// App has UserKeys backup, but without UserData, and this is the first
// ever compaction upload (after restore or registration).
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 12:19 PM (15 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5829643
Default Alt Text
D15505.1765023582.diff (874 B)
Attached To
Mode
D15505: [native] restart user keys upload on failure
Attached
Detach File
Event Timeline
Log In to Comment