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] #2869

Conversation

borichellow
Copy link
Contributor

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

sonarqubecloud bot commented Jul 9, 2024

Copy link
Contributor

github-actions bot commented Jul 9, 2024

Test Results

2 890 tests   2 767 ✔️  24s ⏱️
   492 suites     123 💤
   492 files           0

Results for commit 3d65009.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Jul 9, 2024

Datadog Report

All test runs fde53d8 🔗

2 Total Test Services: 0 Failed, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Test Service View
kalium-ios 0 0 0 2767 123 1.59s Link
kalium-jvm 0 0 0 2908 107 6.3s Link

Copy link
Member

@MohamadJaara MohamadJaara left a comment

Choose a reason for hiding this comment

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

LGTM

@mchenani mchenani merged commit 478ed1e into release/android-cycle-4.6 Jul 9, 2024
19 checks passed
@mchenani mchenani deleted the fix/allow_creating_empty_mls_group_conversation branch July 9, 2024 12:40
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. 🚨 Potential breaking changes 👕 size: S type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants