-
-
Notifications
You must be signed in to change notification settings - Fork 706
Calling initRustCrypto Causes TypeError #5169
Copy link
Copy link
Open
Labels
A-Element-RIssues affecting the port of Element's crypto layer to RustIssues affecting the port of Element's crypto layer to RustO-FrequentAffects or can be seen by most users regularly or impacts most users' first experienceAffects or can be seen by most users regularly or impacts most users' first experienceS-MinorImpairs non-critical functionality or suitable workarounds existImpairs non-critical functionality or suitable workarounds existT-Defect
Description
Activity
Metadata
Metadata
Assignees
Labels
A-Element-RIssues affecting the port of Element's crypto layer to RustIssues affecting the port of Element's crypto layer to RustO-FrequentAffects or can be seen by most users regularly or impacts most users' first experienceAffects or can be seen by most users regularly or impacts most users' first experienceS-MinorImpairs non-critical functionality or suitable workarounds existImpairs non-critical functionality or suitable workarounds existT-Defect
I'm writing an HTML page and want to enable e2ee. I've read and re-read the docs and some other implementations and I cannot figure out what I'm doing wrong here.
I've defined the following function to set up a matrix client, and initialize the rust crypto module. I haven't included either the
storeorcryptoStoreparameters, as I don't have any legacy data to migrate.When
initRustCryptois called, it throws the following TypeError:It appears to be being thrown here, which is SUPER odd.
Final thing that's happening is this only happens on a page reload, after successfully signing in and caching the session information. I've verified that I'm passing in the correct userId/deviceId/accessToken on the second sign in attempt.
Even if I pass a legacy crypto store it still hits the error!