pub async fn create_outbound_group_session(
        &self,
        room_id: &RoomId,
        settings: EncryptionSettings,
    ) -> OlmResult<()> {
        let (outbound, inbound) = self
            .account
            .create_group_session_pair(room_id, settings)
            .await
            .map_err(|_| EventError::UnsupportedAlgorithm)?;

        let _ = self.store.save_inbound_group_sessions(&[inbound]).await?;

        let _ = self
            .outbound_group_sessions
            .insert(room_id.to_owned(), outbound);
        Ok(())
    }
/// Create a new outbound group session.
///
/// This also creates a matching inbound group session and saves that one in
/// the store.
Create a new outbound group session.
This also creates a matching inbound group session and saves that one in
the store.
Create a new outbound group session . This also creates a matching inbound group session and saves that one in the store .
pub async fn create_outbound_group_session(
        &self,
        room_id: &RoomId,
        settings: EncryptionSettings,
    ) -> OlmResult<()> {
        let (outbound, inbound) = self
            .account
            .create_group_session_pair(room_id, settings)
            .await
            .map_err(|_| EventError::UnsupportedAlgorithm)?;
        let _ = self.store.save_inbound_group_sessions(&[inbound]).await?;
        let _ = self
            .outbound_group_sessions
            .insert(room_id.to_owned(), outbound);
        Ok(())
    }
pub async fn create_outbound_group_session ( & self , room_id : & RoomId , settings : EncryptionSettings , ) -> OlmResult < ( ) > { let ( outbound , inbound ) = self . account . create_group_session_pair ( room_id , settings ) . await . map_err ( | _ | EventError :: UnsupportedAlgorithm ) ? ; let _ = self . store . save_inbound_group_sessions ( & [ inbound ] ) . await ? ; let _ = self . outbound_group_sessions . insert ( room_id . to_owned ( ) , outbound ) ; Ok ( ( ) ) }
Create a new outbound group session.
Create a new outbound group session .
&self
room_id
&RoomId
settings
EncryptionSettings
&self
room_id
&RoomId
settings
EncryptionSettings