Merge pull request #603 from vector-im/dbkr/fix_improper_logout
Clear storage after logout
This commit is contained in:
commit
25388a77aa
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ export const ClientProvider: FC<Props> = ({ children }) => {
|
|||
|
||||
const logout = useCallback(async () => {
|
||||
await client.logout(undefined, true);
|
||||
await client.clearStores();
|
||||
clearSession();
|
||||
setState({
|
||||
client: undefined,
|
||||
|
|
Loading…
Reference in a new issue