Page MenuHomePhorge

D15395.1765029662.diff
No OneTemporary

Size
979 B
Referenced Files
None
Subscribers
None

D15395.1765029662.diff

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

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)

Event Timeline