diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index d3d15a13..e7bd5f58 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -986,14 +986,13 @@ impl OlmMachine { /// used. /// /// `users` - The list of users that should receive the group session. - pub async fn share_group_session<'a, I, S>( + pub async fn share_group_session( &self, room_id: &RoomId, - users: I, + users: impl Iterator, encryption_settings: S, ) -> OlmResult> where - I: IntoIterator, S: Into + Sized, { self.create_outbound_group_session(room_id, encryption_settings.into())