pub fn should_share_group_session(&self, room_id: &RoomId) -> bool {
        let session = self.outbound_group_sessions.get(room_id);

        match session {
            Some(s) => !s.shared() || s.expired() || s.invalidated(),
            None => true,
        }
    }
/// Should the client share a group session for the given room.
///
/// Returns true if a session needs to be shared before room messages can be
/// encrypted, false if one is already shared and ready to encrypt room
/// messages.
///
/// This should be called every time a new room message wants to be sent out
/// since group sessions can expire at any time.
Should the client share a group session for the given room.
Returns true if a session needs to be shared before room messages can be
encrypted, false if one is already shared and ready to encrypt room
messages.

This should be called every time a new room message wants to be sent out
since group sessions can expire at any time.
Should the client share a group session for the given room . Returns true if a session needs to be shared before room messages can be encrypted false if one is already shared and ready to encrypt room messages . This should be called every time a new room message wants to be sent out since group sessions can expire at any time .
pub fn should_share_group_session(&self, room_id: &RoomId) -> bool {
        let session = self.outbound_group_sessions.get(room_id);
        match session {
            Some(s) => !s.shared() || s.expired() || s.invalidated(),
            None => true,
        }
    }
pub fn should_share_group_session ( & self , room_id : & RoomId ) -> bool { let session = self . outbound_group_sessions . get ( room_id ) ; match session { Some ( s ) => ! s . shared ( ) || s . expired ( ) || s . invalidated ( ) , None => true , } }
Should the client share a group session for the given room.
Should the client share a group session for the given room .
&self
room_id
&RoomId
&self
room_id
&RoomId