fix broken copy invite link

This commit is contained in:
10G Meow 2023-08-13 14:06:53 +03:00
parent 5e3aaf291e
commit 582354ea29
2 changed files with 9 additions and 3 deletions

View file

@ -48,7 +48,7 @@
</v-col> </v-col>
<v-col cols="auto" class="text-end ma-0 pa-0 ms-1 clickable close-button more-menu-button"> <v-col cols="auto" class="text-end ma-0 pa-0 ms-1 clickable close-button more-menu-button">
<div :class="{ 'popup-open': showMoreMenu }"> <div :class="{ 'popup-open': showMoreMenu }">
<v-btn class="mx-2 box-shadow-none" fab dark small color="transparent" @click.stop="showMoreMenu = true"> <v-btn class="mx-2 box-shadow-none" fab dark small color="transparent" @click.stop="onShowMoreMenu">
<v-icon size="15">$vuetify.icons.ic_more</v-icon> <v-icon size="15">$vuetify.icons.ic_more</v-icon>
</v-btn> </v-btn>
</div> </div>
@ -232,6 +232,12 @@ export default {
}, },
methods: { methods: {
onShowMoreMenu() {
if(this.publicRoomLink == null) {
this.roomJoinRule = this.getRoomJoinRule();
}
this.showMoreMenu = true
},
setHasShownMissedItemsHint() { setHasShownMissedItemsHint() {
this.$store.commit('setHasShownMissedItemsHint', "1"); this.$store.commit('setHasShownMissedItemsHint', "1");
this.showMissedItemsInfo = false; this.showMissedItemsInfo = false;

View file

@ -333,7 +333,7 @@ export default {
visibility: "private", // Not listed! visibility: "private", // Not listed!
name: this.roomName, name: this.roomName,
preset: "public_chat", preset: "public_chat",
initial_state: initial_state:
this.unencryptedRoom ? [ this.unencryptedRoom ? [
{ {
type: "m.room.history_visibility", type: "m.room.history_visibility",
@ -342,7 +342,7 @@ export default {
history_visibility: "shared" history_visibility: "shared"
} }
} }
] : ] :
[ [
{ {
type: "m.room.encryption", type: "m.room.encryption",