diff --git a/OpenApi.yml b/OpenApi.yml index 330e120..42f3ea4 100644 --- a/OpenApi.yml +++ b/OpenApi.yml @@ -307,6 +307,7 @@ components: max_connections: type: number example: 10 + description: 0 when using mux running: type: boolean example: true @@ -361,6 +362,7 @@ components: max_connections: type: number default: 10 + description: 0 when using mux user_pass: type: string example: neko diff --git a/client/src/components/RoomInfo.vue b/client/src/components/RoomInfo.vue index d9c07cf..ee9109e 100644 --- a/client/src/components/RoomInfo.vue +++ b/client/src/components/RoomInfo.vue @@ -25,10 +25,10 @@ :rotate="270" :size="100" :width="15" - :value="usesMux ? 100 : ((stats.connections / settings.max_connections) * 100)" + :value="settings.max_connections == 0 ? 100 : ((stats.connections / settings.max_connections) * 100)" color="blue" > - {{ stats.connections }} + {{ stats.connections }} @@ -99,7 +99,10 @@ Invite link for admins - Max connections {{ settings.max_connections }} + Max connections + + not limited because uses mux + Control protection {{ settings.control_protection }} Implicit Control {{ settings.implicit_control }} @@ -275,8 +278,7 @@ export default class RoomInfo extends Vue { } get usesMux() { - // old rooms might not use mux despite enabled server wide, simple check for that - return this.$store.state.roomsConfig.uses_mux && this.settings?.max_connections == 1 + return this.$store.state.roomsConfig.uses_mux } get allBrowserExtensions() { diff --git a/client/src/components/RoomsCreate.vue b/client/src/components/RoomsCreate.vue index 8546f3f..b78bd29 100644 --- a/client/src/components/RoomsCreate.vue +++ b/client/src/components/RoomsCreate.vue @@ -604,7 +604,7 @@ export default class RoomsCreate extends Vue { // eslint-disable-next-line admin_pass: this.data.admin_pass || randomPassword(), // eslint-disable-next-line - max_connections: Number(this.data.max_connections), // not needed when uses mux + max_connections: Number(this.data.max_connections), // ignored when uses mux // eslint-disable-next-line control_protection: Boolean(this.data.control_protection), // eslint-disable-next-line diff --git a/client/src/components/RoomsList.vue b/client/src/components/RoomsList.vue index 6f92daa..95afd82 100644 --- a/client/src/components/RoomsList.vue +++ b/client/src/components/RoomsList.vue @@ -33,8 +33,8 @@