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

Noe/fix group streams issues #503

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Noe/fix group streams issues #503

merged 7 commits into from
Sep 30, 2024

Conversation

nmalzieu
Copy link
Collaborator

  • removed the check for this.known when streaming a group because we might call somewhere else listGroups which will mark the group as known but we still want it to get streamed. If there are other effects of this check @nplasterer let's discuss!
  • added a small delay in a test after streaming to be sure the stream is opened before sending a message
  • added a failing test when streaming both messages & groups in iOS, that is fixed by this Swift PR: Fixing group streams xmtp-ios#406

@nmalzieu nmalzieu requested a review from a team as a code owner September 26, 2024 15:52
Copy link
Contributor

@nplasterer nplasterer left a comment

Choose a reason for hiding this comment

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

Don't forget to add a semantic commit so a release gets triggered.

@@ -146,7 +146,7 @@ export default class Conversations<
const groupsSubscription = XMTPModule.emitter.addListener(
EventTypes.Group,
async ({ inboxId, group }: { inboxId: string; group: GroupParams }) => {
if (this.known[group.id] || this.client.inboxId !== inboxId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The forked group test is still flaky for me so I don't think this fixes it. I'd probably lean more towards reverting this change just in case. But also okay with leaving it if you think it will fix other issues as all the tests seem to be passing.

@nmalzieu nmalzieu merged commit 8ff06e5 into main Sep 30, 2024
5 of 6 checks passed
@nmalzieu nmalzieu deleted the noe/fix-group-streams-issues branch September 30, 2024 09:27
Copy link

🎉 This PR is included in version 2.6.2 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants