We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7767ef6 commit bcabf1bCopy full SHA for bcabf1b
crates/matrix-sdk-crypto/src/store/mod.rs
@@ -1580,10 +1580,7 @@ impl Store {
1580
&self,
1581
room_id: &RoomId,
1582
) -> std::result::Result<RoomKeyBundle, CryptoStoreError> {
1583
- // TODO: make this WAY more efficient. We should only fetch sessions for the
1584
- // correct room.
1585
- let mut sessions = self.get_inbound_group_sessions().await?;
1586
- sessions.retain(|session| session.room_id == room_id);
+ let sessions = self.get_inbound_group_sessions_by_room_id(room_id).await?;
1587
1588
let mut bundle = RoomKeyBundle::default();
1589
for session in sessions {
0 commit comments