-
Notifications
You must be signed in to change notification settings - Fork 2
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
Handle mls-welcome events, creating necessary data with core-crypto #WPB-12154 #111
Conversation
* Process event and check if new keyPackages are needed * Check if the conversation already exists when joining via commit * Check for key package replenishment during conversation.create and conversation.member.join * Add Mockito to test some simple replenishment and welcomeMessage in WireClientBase * Release on git tag instead of GitHub release, as other projects do * Fix Dokka not generating JavaDoc for CryptoMlsClient
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.
Great work! Just have 1 comment on variable naming, but nothing much
workflow_dispatch: | ||
release: | ||
types: [ published ] |
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.
🙌🏻
@@ -107,16 +117,22 @@ protected void handleMessage(UUID eventId, Payload payload, WireClient client) t | |||
Logger.debug("conversation.create: bot: %s", botId); | |||
|
|||
systemMessage = getSystemMessage(eventId, payload); | |||
Integer otherMembers = PREKEYS_DEFAULT_REPLENISH; |
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.
the naming suggests a list of Member
, if possible would be great to have another naming, maybe something like preKeysSize
or preKeysCount
but also super open to suggestions
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.
Changed the name of the variable. You also made me realize that I can skip proteus or MLS key replenishment in some cases, so I changed that
* Replenish only the needed keys on conversation.create * Minor refactoring
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
MLS is supported for previous conversations, but not new ones received through mls-welcome event
Solutions
Add mld-welcome handling
Testing
Test Coverage (Optional)
PR Post Submission Checklist for internal contributors (Optional)
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.