Fix autojoin key connecting to non-autojoin rooms
This commit is contained in:
parent
ca0f0b6c31
commit
8b928184e8
2 changed files with 8 additions and 1 deletions
|
|
@ -15,6 +15,10 @@ Procedure when bumping the version number:
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- `keys.rooms.action.connect_autojoin` connecting to non-autojoin rooms
|
||||||
|
|
||||||
## v0.9.2 - 2025-03-14
|
## v0.9.2 - 2025-03-14
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -536,7 +536,10 @@ impl Rooms {
|
||||||
}
|
}
|
||||||
if event.matches(&keys.rooms.action.connect_autojoin) {
|
if event.matches(&keys.rooms.action.connect_autojoin) {
|
||||||
for (domain, server) in &self.config.euph.servers {
|
for (domain, server) in &self.config.euph.servers {
|
||||||
for name in server.rooms.keys() {
|
for (name, room) in &server.rooms {
|
||||||
|
if !room.autojoin {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let id = RoomIdentifier::new(domain.clone(), name.clone());
|
let id = RoomIdentifier::new(domain.clone(), name.clone());
|
||||||
self.connect_to_room(id).await;
|
self.connect_to_room(id).await;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue