Skip to content

Conversation

@neekolas
Copy link
Contributor

@neekolas neekolas commented Nov 26, 2025

TL;DR

Upgraded XMTP SDK to version 4.6.2 with new features for group management, message sorting, and archive options.

What changed?

  • Updated Android dependency from org.xmtp:android:4.6.1 to org.xmtp:android:4.6.2-rc1
  • Updated iOS dependency from XMTP (4.6.1) to XMTP (4.6.2-rc3)
  • Added support for group app data with new methods groupAppData() and updateGroupAppData()
  • Enhanced message queries with new parameters: sortBy, insertedAfterNs, and insertedBeforeNs
  • Improved syncAllConversations() to return a GroupSyncSummary object with numEligible and numSynced properties
  • Made ffiRevokeAllOtherInstallationsSignatureText() return undefined when there are no installations to revoke
  • Added excludeDisappearingMessages option to createArchive()
  • Added support for referenceInboxId in reaction content
  • Enhanced group creation to support app-specific data

How to test?

  1. Test group app data:

    const group = await client.conversations.newGroup([address1, address2])
    await group.updateAppData(JSON.stringify({ customData: "value" }))
    const appData = await group.appData()
  2. Test message sorting by insertion time:

    const messages = await conversation.messages({
      sortBy: "INSERTED_TIME",
      insertedAfterNs: timestamp
    })
  3. Test sync summary:

    const { numEligible, numSynced } = await client.conversations.syncAllConversations()
  4. Test archive with disappearing messages excluded:

    await client.createArchive(path, encryptionKey, undefined, undefined, undefined, true)

Why make this change?

This update provides developers with more control over group metadata through app-specific data, improves message querying capabilities with new sorting options, and enhances archive functionality. The changes to syncAllConversations() provide better visibility into the sync process, while the null-safety improvements in ffiRevokeAllOtherInstallationsSignatureText() prevent potential runtime errors. These enhancements support more sophisticated messaging applications with better data management capabilities.

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

⚠️ No Changeset found

Latest commit: 24e2df5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@neekolas neekolas changed the title Prepare v1.6.2-rc1 Prepare v1.6.2 Nov 26, 2025
Copy link
Contributor Author

neekolas commented Nov 26, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@macroscopeapp
Copy link

macroscopeapp bot commented Nov 26, 2025

Prepare v1.6.2 and change Conversations.syncAllConversations to return GroupSyncSummary with numEligible and numSynced, add message sorting and inserted-time filters across DM/Group queries, and include referenceInboxId in ReactionV2 parsing/output

Adds structured sync results via GroupSyncSummary, introduces sortBy, insertedAfterNs, and insertedBeforeNs to message queries and JSON wrappers, exposes group appData read/write, surfaces insertedAtNs on messages, and updates reactionV2 to parse/output referenceInboxId.

📍Where to Start

Start with the sync summary flow in syncAllConversations: JavaScript entry in src/index.ts, iOS handler in ios/XMTPModule.swift, and Android handler in android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt.


Macroscope summarized 24e2df5.

@neekolas neekolas force-pushed the 11-25-prepare_v1.6.2-rc1 branch 2 times, most recently from cc0cb8a to f82dfb1 Compare November 27, 2025 00:34
@neekolas neekolas marked this pull request as ready for review November 27, 2025 00:34
@neekolas neekolas requested a review from a team as a code owner November 27, 2025 00:34
@neekolas neekolas force-pushed the 11-25-prepare_v1.6.2-rc1 branch from f82dfb1 to 24e2df5 Compare November 27, 2025 00:37
This was referenced Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants