-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Merge to-device retries onto group call branch #2560
Conversation
@@ -589,8 +589,7 @@ class MegolmEncryption extends EncryptionAlgorithm { | |||
* |
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 file has new code: updated to not use the return value of encryptAndSendToDevices
as it already had all the info it needed.
* @return {Promise<{contentMap, deviceInfoByDeviceId}>} Promise which | ||
* resolves once the message has been encrypted and sent to the given | ||
* userDeviceMap, and returns the { contentMap, deviceInfoByDeviceId } | ||
* of the successfully sent messages. | ||
*/ | ||
public encryptAndSendToDevices( | ||
userDeviceInfoArr: IOlmDevice<DeviceInfo>[], |
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 function updated to use the new API and no longer returns anything.
Oh - I might suggest waiting for #2528 to land and then merging that, since I've already resolved the conflicts with the retries PR there. |
(and otherwise, #2528 would generate yet another set of conflicts) |
ah cool - ok |
will re-open as necessary now that's merged |
This merges #2549 onto the group-call branch
Merge is nontrivial though, so may be worth a review - I'll highlight the bits that needed actual new code.
Checklist
This PR currently has none of the required changelog labels.
Add one of:
T-Deprecation
,T-Enhancement
,T-Defect
,T-Task
to indicate what type of change this is plusX-Breaking-Change
if it's a breaking change.