diff options
author | dan <dan.abramov@gmail.com> | 2024-05-08 23:11:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 23:11:39 +0100 |
commit | 0c6bf276dd43762cb36541d278f95dceb1c35896 (patch) | |
tree | a6e4ae3a3d01412c87ee1ee2c3e9d2d61f987b9c /src/state/session/reducer.ts | |
parent | f62b0458a742dc7e00c5ca75064718bc6fef53b7 (diff) | |
download | voidsky-0c6bf276dd43762cb36541d278f95dceb1c35896.tar.zst |
Replace updateCurrentAccount() with refreshSession() (#3910)
Replace updateCurrentAccount() with resumeSession()
Diffstat (limited to 'src/state/session/reducer.ts')
-rw-r--r-- | src/state/session/reducer.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/state/session/reducer.ts b/src/state/session/reducer.ts index a14cd8e1c..775a6d038 100644 --- a/src/state/session/reducer.ts +++ b/src/state/session/reducer.ts @@ -37,15 +37,6 @@ export type Action = newAccount: SessionAccount } | { - type: 'updated-current-account' - updatedFields: Partial< - Pick< - SessionAccount, - 'handle' | 'email' | 'emailConfirmed' | 'emailAuthFactor' - > - > - } - | { type: 'removed-account' accountDid: string } @@ -134,23 +125,6 @@ export function reducer(state: State, action: Action): State { needsPersist: true, } } - case 'updated-current-account': { - const {updatedFields} = action - return { - accounts: state.accounts.map(a => { - if (a.did === state.currentAgentState.did) { - return { - ...a, - ...updatedFields, - } - } else { - return a - } - }), - currentAgentState: state.currentAgentState, - needsPersist: true, - } - } case 'removed-account': { const {accountDid} = action return { |