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

Add a test for members inconsistencies when creating new installations #458

Merged
merged 5 commits into from
Aug 7, 2024

Conversation

nmalzieu
Copy link
Contributor

@nmalzieu nmalzieu commented Aug 5, 2024

If you create a group with 2 inboxes, and one of those 2 inboxes creates a new installation, then sending a message on the group make it appear like a 1 person group.

This is probably causing a lot of our "group members inconsistencies"

Test fails on Android & iOS, but sometimes on iOS it also fails with "Pool error timed out" which we know happens on iOS...

Capture d’écran 2024-08-05 à 14 33 51 Capture d’écran 2024-08-05 à 14 33 29

@nmalzieu nmalzieu requested a review from nplasterer August 5, 2024 12:37
@nmalzieu nmalzieu requested a review from a team as a code owner August 5, 2024 12:37
Comment on lines 2026 to 2031
const client1Group = (await client1.conversations.listGroups()).find(
(g) => g.id === group.id
)
const client2Group = (await client2.conversations.listGroups()).find(
(g) => g.id === group.id
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Total nit but you can actually call just find_group directly in V3 instead of iterating over the list.

@nplasterer nplasterer changed the base branch from main to beta August 7, 2024 04:16
@nplasterer nplasterer changed the base branch from beta to main August 7, 2024 04:16
@nplasterer nplasterer requested a review from a team August 7, 2024 04:22
@nplasterer nplasterer merged commit 954f4fd into main Aug 7, 2024
5 of 6 checks passed
@nplasterer nplasterer deleted the noe/members-inconsistence-test branch August 7, 2024 04:39
Copy link
Contributor

github-actions bot commented Aug 7, 2024

🎉 This PR is included in version 2.2.4 🎉

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.

3 participants