-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Consider not duplicating the crypto API on MatrixClient #17488
Comments
Yes, I've never quite been sure why we duplicate most crypto methods onto the client... 🤔 |
ftr, I'm translating them verbatim in a typescript conversion but one day I'd like us to remove the ~1700 lines of code from MatrixClient. |
The reason it's done like that is to separate the internal interface of the My goal is to make the Crypto module properly internal as part of #21972. As part of that I can look into replacing it with two interfaces: a public one exposed to the application by, say, |
To update on this: it's in progress as part of my work on Element Web R. We're exposing a public Progress so far includes
|
we really just need a
isCryptoEnabled
flag and the rest can just NPE if people fail to handleclient.crypto
being null....The text was updated successfully, but these errors were encountered: