8000 Bump XMTP package to 2.0.7 by qrtp · Pull Request #313 · unstoppabledomains/domain-profiles · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bump XMTP package to 2.0.7 #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2025
Merged

Bump XMTP package to 2.0.7 #313

merged 1 commit into from
Apr 19, 2025

Conversation

qrtp
Copy link
Collaborator
@qrtp qrtp commented Apr 19, 2025

WIP

Copy link

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp
Copy link
Collaborator Author
qrtp commented Apr 19, 2025

/gcbrun

2 similar comments
@qrtp
Copy link
Collaborator Author
qrtp commented Apr 19, 2025

/gcbrun

@qrtp
Copy link
Collaborator Author
qrtp commented Apr 19, 2025

/gcbrun

@qrtp qrtp changed the title bump XMTP package to 2.0.7 Bump XMTP package to 2.0.7 Apr 19, 2025
@qrtp qrtp requested a review from Copilot April 19, 2025 19:49
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR bumps the XMTP package to version 2.0.7 and updates related code to accommodate the new API changes. Key changes include updating the getRemoteAttachment function to enforce type safety on the message content, refactoring client creation in getXmtpClient to use Client.build for existing clients, and updating type casts in ConversationBubble for remote attachments.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
packages/ui-components/src/components/Chat/protocol/xmtp.ts Updated getRemoteAttachment to require DecodedMessage and refactored client restoration using Client.build.
packages/ui-components/src/components/Chat/modal/dm/ConversationBubble.tsx Added explicit type casts for message content and remote attachment to align with XMTP package updates.
Files not reviewed (1)
  • packages/ui-components/package.json: Language not supported
Comments suppressed due to low confidence (2)

packages/ui-components/src/components/Chat/modal/dm/ConversationBubble.tsx:73

  • [nitpick] The force-cast of message.content to a string should be reviewed to ensure that the content is always of type string when the ContentTypeText condition is met; consider implementing a type guard if edge cases are possible.
<Emoji>{message.content as string}</Emoji>

packages/ui-components/src/components/Chat/protocol/xmtp.ts:264

  • The added check for message.content ensures that attachment loading does not proceed with invalid data. Verify that this validation is consistent with other message checks in the codebase to maintain uniform error handling.
if (!message.content) {

@qrtp qrtp merged commit 0be866f into main Apr 19, 2025
2 checks passed
@qrtp qrtp deleted the qrtp/xmtp-sdk-bump branch April 19, 2025 19:51
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.

1 participant
0