-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: set the correct external sender key when creating MLS conversation #2735
feat: set the correct external sender key when creating MLS conversation #2735
Conversation
override fun fromDTO(publicKeys: MLSPublicKeysDTO) = with(publicKeys) { | ||
removal?.entries?.mapNotNull { | ||
when (it.key) { | ||
ED25519 -> MLSPublicKey(Ed25519Key(it.value.decodeBase64Bytes()), KeyType.REMOVAL) |
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 mapper will always return a list containing one item or null, so it was removed with choosing the correct signature from the map
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 2 Passed Test Services
|
logic/src/commonMain/kotlin/com/wire/kalium/logic/data/mlspublickeys/MLSPublicKeysRepository.kt
Outdated
Show resolved
Hide resolved
logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/client/RegisterMLSClientUseCase.kt
Outdated
Show resolved
Hide resolved
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.
LGTM, added couple of comments.
…ly' into feat/set-the-correct-public-key-when-creating-MLS-conversation # Conflicts: # logic/src/commonMain/kotlin/com/wire/kalium/logic/data/client/MLSClientProvider.kt # logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
Signed-off-by: MohamadJaara <[email protected]>
…ly' into feat/set-the-correct-public-key-when-creating-MLS-conversation # Conflicts: # gradle/libs.versions.toml
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.
Tiny nitpick
logic/src/commonMain/kotlin/com/wire/kalium/logic/data/mlspublickeys/MLSPublicKeysMapper.kt
Outdated
Show resolved
Hide resolved
…ickeys/MLSPublicKeysMapper.kt Co-authored-by: Vitor Hugo Schwaab <[email protected]>
…le-4.6' into feat/set-the-correct-public-key-when-creating-MLS-conversation # Conflicts: # cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/CoreCryptoCentral.kt
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
when creating a new conversation, we need to set the server public key matching the default cipher suite
Solutions
select the matching signature from cipher suite
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.