From 95028036cd6aa6e88cdc2f59f79b6e8778d1e847 Mon Sep 17 00:00:00 2001 From: Daniel Salinas Date: Fri, 6 Dec 2024 08:39:56 -0500 Subject: [PATCH] Invalidate members on kick to prevent stale results --- crates/matrix-sdk/src/room/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/matrix-sdk/src/room/mod.rs b/crates/matrix-sdk/src/room/mod.rs index 667b77e6e40..3725ce6fdb2 100644 --- a/crates/matrix-sdk/src/room/mod.rs +++ b/crates/matrix-sdk/src/room/mod.rs @@ -1333,6 +1333,10 @@ impl Room { { reason: reason.map(ToOwned::to_owned) } ); self.client.send(request, None).await?; + + // Force future room members reload + self.mark_members_missing(); + Ok(()) }