Page MenuHomePhabricator

D14065.id46109.diff
No OneTemporary

D14065.id46109.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
@@ -1,6 +1,7 @@
// @flow
import { createUserKeysBackupActionTypes } from '../actions/backup-actions.js';
+import { changeIdentityUserPasswordActionTypes } from '../actions/user-actions.js';
import type { BackupStore } from '../types/backup-types.js';
import type { BaseAction } from '../types/redux-types.js';
@@ -16,6 +17,10 @@
timestamp: Date.now(),
},
};
+ } else if (action.type === changeIdentityUserPasswordActionTypes.success) {
+ return {
+ latestBackupInfo: null,
+ };
}
return store;
}
diff --git a/native/backup/backup-handler.js b/native/backup/backup-handler.js
--- a/native/backup/backup-handler.js
+++ b/native/backup/backup-handler.js
@@ -146,6 +146,7 @@
const timestamp = latestBackupInfo.timestamp;
// If last upload one less than 24h ago ignore it
if (timestamp >= Date.now() - millisecondsPerDay) {
+ backupUploadInProgress.current = false;
return;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 2:56 PM (11 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2851502
Default Alt Text
D14065.id46109.diff (1 KB)

Event Timeline