Add "auto_join_rooms" flag

This commit is contained in:
N-Pex 2024-07-22 10:38:07 +02:00
parent b646b1c8ad
commit 66ea1c4fdc
4 changed files with 32 additions and 3 deletions

View file

@ -306,7 +306,14 @@ export default {
return roomName ? roomName : "";
},
getRoomInfo() {
if (this.roomId.startsWith("#")) {
if (this.$config.auto_join_rooms) {
// Auto-join room
this.waitingForRoomCreation = true;
this.$nextTick(() => {
this.handleJoin();
});
}
else if (this.roomId.startsWith("#")) {
this.$matrix
.getPublicRoomInfo(this.roomId)
.then((room) => {