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

Remove usage of legacy crypto in embedded.ts #4668

Conversation

florianduros
Copy link
Contributor

@florianduros florianduros commented Jan 29, 2025

Task element-hq/element-web#26922
Part of #4653

The interface of encryptAndSendToDevices changes because DeviceInfo is from the legacy crypto. In fact encryptAndSendToDevices only need pairs of userId and deviceId.

We need to update the interface and we can simplify it.

The CI is in failure because the root branch (which is a feature branch) has removed deprecated MatrixClient methods used by the legacy crypto. Legacy crypto which will be removed in this feature branch.

The interface of `encryptAndSendToDevices` changes because `DeviceInfo` is from the legacy crypto. In fact `encryptAndSendToDevices` only need pairs of userId and deviceId.
@florianduros florianduros changed the title Remove deprecated usage of legacy crypto in embedded.spec.ts Remove usage of legacy crypto in embedded.spec.ts Jan 29, 2025
@florianduros florianduros marked this pull request as ready for review January 29, 2025 11:48
@florianduros florianduros requested a review from a team as a code owner January 29, 2025 11:48
@florianduros florianduros requested review from t3chguy and MidhunSureshR and removed request for a team January 29, 2025 11:48
@t3chguy
Copy link
Member

t3chguy commented Jan 29, 2025

I think this needs review from voip as they are the codeowners for it

@florianduros florianduros requested review from a team and AndrewFerr and removed request for a team January 29, 2025 11:54
@florianduros florianduros changed the title Remove usage of legacy crypto in embedded.spec.ts Remove usage of legacy crypto in embedded.ts Jan 29, 2025
@@ -128,6 +137,7 @@ export enum RoomWidgetClientEvent {
PendingEventsChanged = "PendingEvent.pendingEventsChanged",
}
export type EventHandlerMap = { [RoomWidgetClientEvent.PendingEventsChanged]: () => void };

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noisy, I'll remove it

@florianduros florianduros merged commit 0185f30 into florianduros/rip-out-legacy-crypto/remove-legacy-crypto Jan 31, 2025
47 of 51 checks passed
@florianduros florianduros deleted the florianduros/rip-out-legacy-crypto/clean-up-embedded branch January 31, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants