Skip to content

Stream group updates with XMTP

Stream group metadata changes (name, description, members) in real-time using the group_updated native content type.

Type ID: xmtp.org/group_updated:1.0. The payload is a GroupUpdated protobuf. It has no fallback text. The codec sets shouldPush to false, but the locally stored transcript message has shouldPush: true on all four platforms. The message is not published, so it never reaches a push server.

FieldMeaning
initiatedByInboxIdInbox that made the commit
addedInboxesInboxes added
removedInboxesInboxes removed by another member
leftInboxesInboxes removed after a leave request
metadataFieldChangesMutable metadata changes
addedAdminInboxesInboxes made admin
removedAdminInboxesInboxes no longer admin
addedSuperAdminInboxesInboxes made super admin
removedSuperAdminInboxesInboxes no longer super admin

One message can contain several changes. metadataFieldChanges can identify the group name, description, group image URL, disappearing-message settings, minimum protocol version, app data, or commit-log signer.

Inbox

FieldType
inboxIdstring

MetadataFieldChange

FieldTypePresent
fieldNamestringAlways
oldValuestringAbsent when the field had no value
newValuestringAbsent when the field was cleared

fieldName is one of:

ValueField
group_nameGroup name
descriptionGroup description
group_image_url_squareGroup image URL
message_disappear_from_nsDisappearing messages, start
message_disappear_in_nsDisappearing messages, duration
minimum_supported_protocol_versionMinimum protocol version
app_dataApplication data
_commit_log_signerCommit-log signer

A group_updated message is not sent. Each client writes it into its own database when it processes a commit. The message you see is produced locally, by you, from the commit you just applied.

Your own client writes one when it reads its commit back. Other installations create their own copies. A newly added member joins through a welcome and receives a synthetic update that names only its own inbox. A key update with no membership or metadata change produces no group-update message.