Module group_mutable_metadata
Structs§
- Group
Mutable Metadata - Represents the mutable metadata for a group.
- Message
Disappearing Settings - Settings for disappearing messages in a conversation.
Enums§
- Group
Mutable Metadata Error - Errors that can occur when working with GroupMutableMetadata.
- Metadata
Field - Represents the “updateable” metadata fields for a group. Members ability to update metadata is gated by the group permissions.
Constants§
- METADATA_
FIELD_ COMPONENT_ MAP - Single source of truth for the
MetadataField↔ComponentIdbijection over the Bytes/String-typed mutable-metadata family. The dict↔legacy merge below and the lookup helpers inxmtp_mls::groups::app_data::component_sourceall derive from this table.
Functions§
- decode_
secret_ hex - Decode hex that holds a secret, such as the commit-log signer, straight
into a zeroizing buffer.
hex::decodewould leave a partly decoded secret in its own buffer on an error. A0xor0Xprefix is accepted, ashex::decodedoes. - find_
mutable_ metadata_ extension - Finds the mutable metadata extension in the given MLS Extensions.
- merge_
components_ into_ mutable_ metadata - Overlay metadata components onto
base, reading each component’s bytes withcomponent. Values translate as inmerge_dict_into_mutable_metadata. - merge_
dict_ entries_ into_ mutable_ metadata_ lossy merge_dict_into_mutable_metadata_lossyfor a dictionary read without OpenMLS types.entryreturns the stored bytes of a component id.- merge_
dict_ into_ mutable_ metadata - Overlay the AppData dictionary’s metadata components onto
base. No-op when the extensions carry no AppData dictionary. - merge_
dict_ into_ mutable_ metadata_ lossy - Merge available dictionary fields for legacy migration. Keep defaults for absent fields. Omit malformed values without replacing them with defaults.