From c2332ce74f3b2476a690ce6a1ccaab7853a19c63 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Fri, 2 Aug 2024 17:12:17 -0400 Subject: [PATCH] don't share with our own device --- .../src/session_manager/group_sessions/share_strategy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-crypto/src/session_manager/group_sessions/share_strategy.rs b/crates/matrix-sdk-crypto/src/session_manager/group_sessions/share_strategy.rs index fa02eeaf4ee..27bfe34850a 100644 --- a/crates/matrix-sdk-crypto/src/session_manager/group_sessions/share_strategy.rs +++ b/crates/matrix-sdk-crypto/src/session_manager/group_sessions/share_strategy.rs @@ -133,7 +133,7 @@ pub(crate) async fn collect_session_recipients( let own_identity = store.get_user_identity(store.user_id()).await?.and_then(|i| i.into_own()); for user_id in users { - let user_devices = store.get_device_data_for_user(user_id).await?; + let user_devices = store.get_device_data_for_user_filtered(user_id).await?; // We only need the user identity if only_allow_trusted_devices is set. let device_owner_identity = if only_allow_trusted_devices {