Add "auto_join_rooms" flag
This commit is contained in:
parent
b646b1c8ad
commit
66ea1c4fdc
4 changed files with 32 additions and 3 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue