pub fn receive_messages_for_group(&self, message: &MlsMessageIn) -> Result<(), ClientError> {
        let mut group_states = self.groups.borrow_mut();
        let group_id = GroupId::from_slice(message.group_id());
        let group_state = group_states
            .get_mut(&group_id)
            .ok_or(ClientError::NoMatchingGroup)?;
        let events = group_state.process_message(message.clone(), &self.crypto)?;
        for event in events {
            if let GroupEvent::Error(e) = event {
                return Err(ClientError::ErrorEvent(e));
            }
        }
        Ok(())
    }
/// Have the client process the given messages. Returns an error if an error
/// occurs during message processing or if no group exists for one of the
/// messages.
Have the client process the given messages. Returns an error if an error
occurs during message processing or if no group exists for one of the
messages.
Have the client process the given messages . Returns an error if an error occurs during message processing or if no group exists for one of the messages .
pub fn receive_messages_for_group(&self, message: &MlsMessageIn) -> Result<(), ClientError> {
        let mut group_states = self.groups.borrow_mut();
        let group_id = GroupId::from_slice(message.group_id());
        let group_state = group_states
            .get_mut(&group_id)
            .ok_or(ClientError::NoMatchingGroup)?;
        let events = group_state.process_message(message.clone(), &self.crypto)?;
        for event in events {
            if let GroupEvent::Error(e) = event {
                return Err(ClientError::ErrorEvent(e));
            }
        }
        Ok(())
    }
pub fn receive_messages_for_group ( & self , message : & MlsMessageIn ) -> Result < ( ) , ClientError > { let mut group_states = self . groups . borrow_mut ( ) ; let group_id = GroupId :: from_slice ( message . group_id ( ) ) ; let group_state = group_states . get_mut ( & group_id ) . ok_or ( ClientError :: NoMatchingGroup ) ? ; let events = group_state . process_message ( message . clone ( ) , & self . crypto ) ? ; for event in events { if let GroupEvent :: Error ( e ) = event { return Err ( ClientError :: ErrorEvent ( e ) ) ; } } Ok ( ( ) ) }
Have the client process the given messages.
Have the client process the given messages .
&self
message
&MlsMessageIn
&self
message
&MlsMessageIn