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

fix: Allow creating empty MLS GroupConversation [WPB-7099] 🍒 #2870

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 9, 2024

BugWPB-7099 [Android] MLS Group creation fails when creating it only with a user without a device or without keypackages

This PR was automatically cherry-picked based on the following PR:

Original PR description:


What's new in this PR?

Issues

When user trying to create a new MLS GroupConversation only with users that has no KeyPackages, then conversation is not created and error is displayed.
We should allow such a scenario and just create GroupConversation with only 1 (self) user.

Causes (Optional)

Was not implemented (not obvious requirement)

Solutions

Just do it.

In KeyPackageDataSource.claimKeyPackages remove checking if all the users were failed (and returning MissingKeyPackages in that case).
So MLSConversationRepository will take care about returning such an error in case when partial MemberList is not allowed.

Copy link

sonarcloud bot commented Jul 9, 2024

Copy link
Contributor Author

github-actions bot commented Jul 9, 2024

Test Results

2 935 tests   2 917 ✔️  4m 11s ⏱️
       7 suites       18 💤
       7 files           0

Results for commit cf8a740.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

Datadog Report

Branch report: fix/allow_creating_empty_mls_group_conversation-cherry-pick
Commit report: b2071df
Test service: kalium-jvm

✅ 0 Failed, 2966 Passed, 105 Skipped, 12.04s Total Time

@borichellow borichellow merged commit b3e0875 into release/candidate Jul 10, 2024
19 checks passed
@borichellow borichellow deleted the fix/allow_creating_empty_mls_group_conversation-cherry-pick branch July 10, 2024 08:05
github-actions bot added a commit that referenced this pull request Jul 10, 2024
* Commit with unresolved merge conflicts

* Fixed cherry-pick issues

---------

Co-authored-by: boris <[email protected]>
Co-authored-by: Boris Safonov <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Jul 15, 2024
…2872)

* Commit with unresolved merge conflicts

* Fixed cherry-pick issues

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: boris <[email protected]>
Co-authored-by: Boris Safonov <[email protected]>
Co-authored-by: Yamil Medina <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Jul 15, 2024
…2872)

* Commit with unresolved merge conflicts

* Fixed cherry-pick issues

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: boris <[email protected]>
Co-authored-by: Boris Safonov <[email protected]>
Co-authored-by: Yamil Medina <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants