Login on reload

To get a new access_token if the old one has expired. Should fix issue #36.
This commit is contained in:
N-Pex 2021-01-27 12:57:23 +01:00
parent 5645e32cf0
commit 933de4a2ec
5 changed files with 64 additions and 18 deletions

View file

@ -84,9 +84,9 @@ export default {
currentUser: {
immediate: true,
handler(ignorednewVal, ignoredoldVal) {
if (this.loggedIn()) {
if (this.currentUser) {
this.$matrix
.getMatrixClient(this.currentUser)
.login(this.currentUser)
.then(() => {
console.log("Matrix client ready");
})