Skip to content

Commit

Permalink
[native] regenerate backup on every password change
Browse files Browse the repository at this point in the history
Summary:
[ENG-8070](https://linear.app/comm/issue/ENG-8070/regenerate-backup-on-every-password-change)

Some concerns are listed the comment in [ENG-8070](https://linear.app/comm/issue/ENG-8070/regenerate-backup-on-every-password-change#comment-a0fd33ac).

Depends on D14063

Test Plan: On primary device, change password and check that new backup was uploaded

Reviewers: bartek, tomek

Reviewed By: bartek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D14065
  • Loading branch information
xsanm committed Dec 3, 2024
1 parent 99f4e4a commit 863c17c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/reducers/backup-reducer.js
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -13,6 +14,10 @@ function reduceBackupStore(
return {
latestBackupInfo,
};
} else if (action.type === changeIdentityUserPasswordActionTypes.success) {
return {
latestBackupInfo: null,
};
}
return store;
}
Expand Down

0 comments on commit 863c17c

Please sign in to comment.