initial commit
This commit is contained in:
commit
026f835a87
176 changed files with 10613 additions and 0 deletions
12
src/client/action/logout.js
Normal file
12
src/client/action/logout.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import initMatrix from '../initMatrix';
|
||||
|
||||
function logout() {
|
||||
const mx = initMatrix.matrixClient;
|
||||
mx.logout().then(() => {
|
||||
mx.clearStores();
|
||||
window.localStorage.clear();
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
export default logout;
|
||||
Loading…
Add table
Add a link
Reference in a new issue