-
Notifications
You must be signed in to change notification settings - Fork 24
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
V3 group streaming #239
V3 group streaming #239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good maybe a bad merge with main because of all the env stuff in the diff?
Might be worth trying to tackle the more difficult item of streaming both conversations and groups at the same time.
@@ -48,6 +63,18 @@ public actor Conversations { | |||
return try await v3Client.conversations().list(opts: options).map { $0.fromFFI(client: client) } | |||
} | |||
|
|||
public func streamGroups() async throws -> AsyncThrowingStream<Group, Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how you're going to stream both groups and conversations at the same time. But to be able to do this in Android the stream had to return the same type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently planning on holding off on having a combined stream until we do the Conversation -> DM rename. Then we can just have that stream return the union.
…into v3-group-streaming
* Introduce group chat to xmtp-ios * fix lint, add address to example app for groups * paginate * Handle membership changes in example app * Make syncing explicit * Pass legacySignedPrivateKeyProto * add more validations * Add ClientOptions.enableAlphaMLS * Make group changes codec opt-in * Point to libxmtp-swift package, not local filesystem * Update Package.swift Co-authored-by: Cameron Voell <[email protected]> * bump podspec * include env in db url * extract method * return members as strings not objects * Error when trying to enable alpha MLS with no signer and no keys * pass encryption key * Move client test to clientests * Pull v3 client into its own PR * Update GroupMembershipChanged.swift * Add tests * rename mls alpha * fix codec * cleanup * Fix example app (needed to add manual syncs) * Update GroupMembershipChanged.swift * fix nav * cleanup * add group settings view * rename members to member addresses * uncomment local node skip * improve group error * use group id for topic * fix lint * allow mls on dev, other cleanup * V3 group streaming (#239) * ui updates, fix lint * Add streaming * use convo id * bump podspec * bump podspec --------- Co-authored-by: Cameron Voell <[email protected]>
* Introduce group chat to xmtp-ios * fix lint, add address to example app for groups * paginate * Handle membership changes in example app * Make syncing explicit * Pass legacySignedPrivateKeyProto * add more validations * Add ClientOptions.enableAlphaMLS * Make group changes codec opt-in * Point to libxmtp-swift package, not local filesystem * Update Package.swift Co-authored-by: Cameron Voell <[email protected]> * bump podspec * include env in db url * extract method * return members as strings not objects * Error when trying to enable alpha MLS with no signer and no keys * pass encryption key * Move client test to clientests * Pull v3 client into its own PR * Update GroupMembershipChanged.swift * Add tests * rename mls alpha * fix codec * cleanup * Fix example app (needed to add manual syncs) * Update GroupMembershipChanged.swift * fix nav * cleanup * add group settings view * rename members to member addresses * uncomment local node skip * improve group error * use group id for topic * fix lint * allow mls on dev, other cleanup * V3 group streaming (#239) * ui updates, fix lint * Add streaming * use convo id * bump podspec * bump podspec --------- Co-authored-by: Cameron Voell <[email protected]>
Relies on #229.