-
Notifications
You must be signed in to change notification settings - Fork 89
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
Per participant key lost between js-sdk and EC in embedded mode #2561
Comments
Looking at possible causes:
|
So, the log lines are confusing as we have two JavaScript contexts: EW and embedded EC within the iframe. The log lines above are entirely expected within the EW context. And there is actually no-one listening in to What is supposed to happen is the that (decrypted) events get sent via the n.b. There is an optimisation by making it so that the EW context does not track the encryption keys as it doesn't need to. The underlying issue is that we keep hitting the condition here because we see sequences of emits like this:
When |
This is being tracked by #2566. |
I've done a possible fix for this in matrix-org/matrix-react-sdk#12890 but I don't know if this is the right place/direction to fix it as it would change the semantics for other users of the widget API. |
The conclusion is that we won't fix this until we use to-device messaging for key distribution. |
Then there is no subsequent log entry like:
The text was updated successfully, but these errors were encountered: