Login on reload
To get a new access_token if the old one has expired. Should fix issue #36.
This commit is contained in:
parent
5645e32cf0
commit
933de4a2ec
5 changed files with 64 additions and 18 deletions
|
|
@ -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");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue