Add ReadyBoolExt special case for ReadyEqExt.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-12-01 06:30:07 +00:00
parent 50bfb0fe5e
commit 1ce3d2b01f
5 changed files with 29 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ use tuwunel_core::{
Err, Result, debug_info, debug_warn, err, implement,
matrix::PduCount,
pdu::PduBuilder,
utils::{self, FutureBoolExt, future::ReadyEqExt},
utils::{self, FutureBoolExt, future::ReadyBoolExt},
warn,
};
@@ -74,13 +74,13 @@ pub async fn leave(
.services
.state_cache
.server_in_room(self.services.globals.server_name(), room_id)
.eq(&false);
.is_false();
let not_knocked = self
.services
.state_cache
.is_knocked(user_id, room_id)
.eq(&false);
.is_false();
// Ask a remote server if we don't have this room and are not knocking on it
if remote_leave_now || dont_have_room.and(not_knocked).await {