Skip to main content

extract_group_metadata

Function extract_group_metadata 

Source
pub fn extract_group_metadata(
    extensions: &Extensions<GroupContext>,
) -> Result<GroupMetadata, GroupMetadataError>
Expand description

Extract GroupMetadata from a group context.

Capability-aware. On migrated groups (post-bootstrap, where the AppData dictionary contains the canonical COMPONENT_REGISTRY entry) the metadata is reconstructed from the dict’s CONVERSATION_TYPE, CREATOR_INBOX_ID, DM_MEMBERS, and ONESHOT_MESSAGE components. On unmigrated groups it is read from the legacy ImmutableMetadata MLS extension. Callers don’t need to know which path applies.