xmpp::muc::room: reverse check for rooms_joined
skip-changelog, fixes bug introduced in the same release Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
67f3ffaced
commit
4346e4b940
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ pub async fn join_room<'a>(agent: &mut Agent, settings: JoinRoomSettings<'a>) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !agent.rooms_joined.contains_key(&room) {
|
if agent.rooms_joined.contains_key(&room) {
|
||||||
// We are already joined, cannot join
|
// We are already joined, cannot join
|
||||||
warn!("Requesting to join room {room} which is already joined...");
|
warn!("Requesting to join room {room} which is already joined...");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue