xmpp::muc::room: reverse check for rooms_joined
Maxime “pep” Buquet
created
skip-changelog, fixes bug introduced in the same release
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Change summary
xmpp/src/muc/room.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Detailed changes
@@ -64,7 +64,7 @@ pub async fn join_room<'a>(agent: &mut Agent, settings: JoinRoomSettings<'a>) {
return;
}
- if !agent.rooms_joined.contains_key(&room) {
+ if agent.rooms_joined.contains_key(&room) {
// We are already joined, cannot join
warn!("Requesting to join room {room} which is already joined...");
return;