From 635fdd3f808d1b52cd8cb1757fd6fbdcc1bcecf2 Mon Sep 17 00:00:00 2001 From: Skye Elliot Date: Tue, 17 Mar 2026 15:16:18 +0000 Subject: [PATCH] refactor(crypto): Lock `GroupSessionCache::get` to `cfg(test)` This method is now only used by tests, so I opted to lock it behind the test configuration to appease CI. Signed-off-by: Skye Elliot --- .../matrix-sdk-crypto/src/session_manager/group_sessions/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/matrix-sdk-crypto/src/session_manager/group_sessions/mod.rs b/crates/matrix-sdk-crypto/src/session_manager/group_sessions/mod.rs index fb0ec0ae8..9ee32d691 100644 --- a/crates/matrix-sdk-crypto/src/session_manager/group_sessions/mod.rs +++ b/crates/matrix-sdk-crypto/src/session_manager/group_sessions/mod.rs @@ -123,6 +123,7 @@ impl GroupSessionCache { /// /// * `room_id` - The id of the room for which we should get the outbound /// group session. + #[cfg(test)] fn get(&self, room_id: &RoomId) -> Option { self.sessions.read().get(room_id).cloned() }