Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32140883
D15395.1765029662.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
979 B
Referenced Files
None
Subscribers
None
D15395.1765029662.diff
View Options
diff --git a/lib/reducers/backup-reducer.js b/lib/reducers/backup-reducer.js
--- a/lib/reducers/backup-reducer.js
+++ b/lib/reducers/backup-reducer.js
@@ -11,6 +11,7 @@
sendBackupDataToSecondaryActionTypes,
restorationNotifyPeersActionType,
} from '../actions/backup-actions.js';
+import { setClientDBStoreActionType } from '../actions/client-db-store-actions.js';
import {
changeIdentityUserPasswordActionTypes,
logOutActionTypes,
@@ -88,6 +89,18 @@
}
if (
+ action.type === setClientDBStoreActionType &&
+ store.status === 'user_data_backup_started'
+ ) {
+ // This indicates that previously, the app was killed after starting
+ // compaction but before creation concluded. Resetting the state to trigger
+ // upload again.
+ return {
+ ...store,
+ status: 'no_backup',
+ payload: {},
+ };
+ } else if (
action.type === resetBackupRestoreStateActionType ||
action.type === logOutActionTypes.started
) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 2:01 PM (18 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5838325
Default Alt Text
D15395.1765029662.diff (979 B)
Attached To
Mode
D15395: [lib] reset `user_data_backup_started` state when starting app
Attached
Detach File
Event Timeline
Log In to Comment