Merge pull request #603 from vector-im/dbkr/fix_improper_logout

Clear storage after logout
This commit is contained in:
David Baker 2022-09-26 15:04:28 +01:00 committed by GitHub
commit 25388a77aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,