Skip to content
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

feat: New V3 Identity #395

Merged
merged 23 commits into from
May 30, 2024
Merged

feat: New V3 Identity #395

merged 23 commits into from
May 30, 2024

Conversation

nplasterer
Copy link
Contributor

Uses the new V3 Identity for Groups. Gets rid of accountAddress in favor of inboxId.
Will add support for smart contract wallets in a follow up PR.

@nplasterer nplasterer self-assigned this May 29, 2024
@nplasterer nplasterer marked this pull request as ready for review May 29, 2024 22:23
@nplasterer nplasterer requested a review from a team as a code owner May 29, 2024 22:23
@nplasterer nplasterer requested a review from neekolas May 29, 2024 22:24
val cacheGroup = groups[cacheKey]
if (cacheGroup != null) {
return cacheGroup
} else {
val group = client.conversations.listGroups()
.firstOrNull { it.id.toHex() == id }
if (group != null) {
groups[group.cacheKey(clientAddress)] = group
groups[group.cacheKey(client.inboxId)] = group
Copy link
Contributor

Choose a reason for hiding this comment

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

Think this needs to be updated on line 516 as well:

@@ -197,8 +215,8 @@ export class Group<

// Returns the address that added you to the group.
// To get the latest added by address from the network, call sync() first.
Copy link
Contributor

Choose a reason for hiding this comment

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

update comments here for inbox id


export type ExtractDecodedType<C> =
C extends XMTPModule.ContentCodec<infer T> ? T : never
export type ExtractDecodedType<C> = C extends XMTPModule.ContentCodec<infer T>
Copy link
Contributor

Choose a reason for hiding this comment

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

can fix these lint warnings with yarn run eslint --fix from root proj directory

@cameronvoell cameronvoell self-requested a review May 30, 2024 14:43
@cameronvoell
Copy link
Contributor

There are a bunch of tests failing because members() func was not returning properly (issue) in some cases and that was fixed in a libxmtp update yesterday in this PR - xmtp/libxmtp#781

I'm thinking it's okay to merge this, but we should follow up with another android/ios releases to get in latest libxmtp, or we can wait with this PR, wdyt @nplasterer ?

@nplasterer
Copy link
Contributor Author

nplasterer commented May 30, 2024

@cameronvoell since I used semantic commits in this one I think it would be better to wait... I just don't want a known broken package out there. I think this is working okay. Lets just fast follow with the additional fixes and permissions additions.

Copy link
Contributor

@alexrisch alexrisch left a comment

Choose a reason for hiding this comment

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

Approving for fast follow with some of the updates

@nplasterer nplasterer merged commit 4ec2a7b into beta May 30, 2024
5 of 6 checks passed
@nplasterer nplasterer deleted the np/v3-identity branch May 30, 2024 14:59
Copy link
Contributor

🎉 This PR is included in version 1.34.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@peterferguson
Copy link
Contributor

🚀

Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants