pub fn update_required_capabilities_for_bootstrap(
extensions: &mut Extensions<GroupContext>,
) -> Result<(), GroupError>Expand description
Update RequiredCapabilities for the bootstrap commit:
- Add
ExtensionType::AppDataDictionaryto the required extension types so receivers MUST advertise support for the standard AppData dictionary group-context extension. - Remove the four legacy XMTP extension types
(
MUTABLE_METADATA,GROUP_PERMISSIONS,GROUP_MEMBERSHIP,ImmutableMetadata) since the bootstrap commit also removes those extensions from the group context.
Per MLS RFC 9420 ยง7.2, every extension present in the group
context must also be in required_capabilities.extension_types,
so the two changes have to land together.