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; }