crypto: Simplify the function signature of the share group session method.
parent
5876c89858
commit
8167f5e9de
|
@ -986,14 +986,13 @@ impl OlmMachine {
|
||||||
/// used.
|
/// used.
|
||||||
///
|
///
|
||||||
/// `users` - The list of users that should receive the group session.
|
/// `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<S>(
|
||||||
&self,
|
&self,
|
||||||
room_id: &RoomId,
|
room_id: &RoomId,
|
||||||
users: I,
|
users: impl Iterator<Item = &UserId>,
|
||||||
encryption_settings: S,
|
encryption_settings: S,
|
||||||
) -> OlmResult<Vec<OwnedToDeviceRequest>>
|
) -> OlmResult<Vec<OwnedToDeviceRequest>>
|
||||||
where
|
where
|
||||||
I: IntoIterator<Item = &'a UserId>,
|
|
||||||
S: Into<EncryptionSettings> + Sized,
|
S: Into<EncryptionSettings> + Sized,
|
||||||
{
|
{
|
||||||
self.create_outbound_group_session(room_id, encryption_settings.into())
|
self.create_outbound_group_session(room_id, encryption_settings.into())
|
||||||
|
|
Loading…
Reference in New Issue