crypto: Simplify the function signature of the share group session method.

master
Damir Jelić 2020-08-16 16:25:48 +02:00
parent 5876c89858
commit 8167f5e9de
1 changed files with 2 additions and 3 deletions

View File

@ -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<S>(
&self,
room_id: &RoomId,
users: I,
users: impl Iterator<Item = &UserId>,
encryption_settings: S,
) -> OlmResult<Vec<OwnedToDeviceRequest>>
where
I: IntoIterator<Item = &'a UserId>,
S: Into<EncryptionSettings> + Sized,
{
self.create_outbound_group_session(room_id, encryption_settings.into())