diff --git a/Cargo.toml b/Cargo.toml index 795fafab0..6597b0d88 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,3 +2,5 @@ members = ["benchmarks", "crates/*", "labs/*", "xtask"] # xtask and labs should only be compiled when invoked explicitly default-members = ["benchmarks", "crates/*"] + +resolver = "2" diff --git a/crates/matrix-sdk-crypto/src/machine.rs b/crates/matrix-sdk-crypto/src/machine.rs index 0d5ee4bd0..9540cf1c0 100644 --- a/crates/matrix-sdk-crypto/src/machine.rs +++ b/crates/matrix-sdk-crypto/src/machine.rs @@ -638,11 +638,6 @@ impl OlmMachine { /// Beware that a group session needs to be shared before this method can be /// called using the [`share_group_session`] method. /// - /// Since group sessions can expire or become invalid if the room membership - /// changes client authors should check with the - /// [`should_share_group_session`] method if a new group session needs to - /// be shared. - /// /// # Arguments /// /// * `room_id` - The id of the room for which the message should be @@ -654,9 +649,6 @@ impl OlmMachine { /// # Panics /// /// Panics if a group session for the given room wasn't shared beforehand. - /// - /// [`should_share_group_session`]: #method.should_share_group_session - /// [`share_group_session`]: #method.share_group_session pub async fn encrypt( &self, room_id: &RoomId, diff --git a/crates/matrix-sdk-test/src/test_json/sync.rs b/crates/matrix-sdk-test/src/test_json/sync.rs index 842f6ac01..265534359 100644 --- a/crates/matrix-sdk-test/src/test_json/sync.rs +++ b/crates/matrix-sdk-test/src/test_json/sync.rs @@ -210,30 +210,6 @@ pub static SYNC: Lazy = Lazy::new(|| { "replaces_state": "$152034819067QWJxM:localhost" } }, - { - "content": { - "membership": "leave", - "reason": "offline", - "avatar_url": "mxc://avatar.com/d0dV9jLpe", - "displayname": "example" - }, - "event_id": "$1585345508297748AIUBh:matrix.org", - "origin_server_ts": 158534550, - "sender": "@example:localhost", - "state_key": "@example:localhost", - "type": "m.room.member", - "unsigned": { - "replaces_state": "$1585345354296486IGZfp:localhost", - "prev_content": { - "avatar_url": "mxc://avatar.com/d0dV9jLpe", - "displayname": "example", - "membership": "join" - }, - "prev_sender": "@example2:localhost", - "age": 6992 - }, - "room_id": "!roomid:room.com" - } ] }, "timeline": { diff --git a/crates/matrix-sdk/src/client/mod.rs b/crates/matrix-sdk/src/client/mod.rs index 06125ad5d..4fd1a8fe9 100644 --- a/crates/matrix-sdk/src/client/mod.rs +++ b/crates/matrix-sdk/src/client/mod.rs @@ -3362,7 +3362,7 @@ pub(crate) mod tests { let room = client.get_joined_room(room_id!("!SVkFJHzfwvuaIEawgC:localhost")).unwrap(); let members: Vec = room.active_members().await.unwrap(); - assert_eq!(1, members.len()); + assert_eq!(2, members.len()); // assert!(room.power_levels.is_some()) }