Guest access work

This commit is contained in:
N-Pex 2020-11-25 10:02:24 +01:00
parent a164571218
commit 5589131c86
5 changed files with 138 additions and 35 deletions

View file

@ -66,8 +66,7 @@ export default {
openDrawer: false,
}),
mounted() {
this.$router.replace("/");
//this.$router.replace("/");
const version = require("!!raw-loader!./assets/version.txt").default;
console.log("Version", version);
this.buildVersion = version;
@ -90,11 +89,10 @@ export default {
currentUser: {
immediate: true,
handler(ignorednewVal, ignoredoldVal) {
if (this.loggedIn) {
const self = this;
if (this.loggedIn()) {
this.$matrix.getMatrixClient(this.currentUser)
.then(() => {
self.$matrix.initClient();
console.log("Matrix client ready");
})
.catch((error) => {
console.log("Error creating client", error);