Support upgraded rooms (via links to successor/predecessor)

This commit is contained in:
N-Pex 2025-08-04 09:44:06 +02:00
parent 970f82ba29
commit 615aa2b781
11 changed files with 181 additions and 48 deletions

View file

@ -78,7 +78,7 @@
</v-col>
</v-row>
<v-checkbox id="chk-accept-ua" class="mt-0" v-model="acceptUA">
<v-checkbox id="chk-accept-ua" class="mt-0" v-model="acceptUA" v-if="!$store.state.uaAccepted">
<template v-slot:label>
<i18n-t keypath="join.accept_ua" tag="span">
<template v-slot:agreement>
@ -265,6 +265,7 @@ export default {
if (!value || (value && value == oldVal)) {
return; // No change.
}
this.acceptUA = this.$store.state.uaAccepted;
console.log("Join: Current room changed to " + (value ? value : "null"));
this.roomName = this.removeHomeServer(this.roomId);
@ -437,6 +438,7 @@ export default {
.then((room) => {
this.loading = false;
this.loadingMessage = null;
this.$store.commit("acceptUA", true);
this.$nextTick(() => {
if (this.roomNeedsKnock) {
// For knocks, send to room list