-
Notifications
You must be signed in to change notification settings - Fork 68
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
Encryption doesn't seem to work on Dendrite #333
Labels
bug
Something isn't working
Comments
This is probably caused by |
Could this be an upstream rust-sdk issue then? I have no real way to test that |
it's most likely a bot-sdk bug, but it's arguable that Dendrite is overly strict here. |
LunaSquee
added a commit
to LunaSquee/matrix-bot-sdk
that referenced
this issue
Aug 6, 2023
I can confirm this is fixing the issue for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When setting up a
RustSdkCryptoStorageProvider
on theMatrixClient
, it keeps throwing the erroruser_id or device_id mismatch
in the log and doesn't actually seem to synchronize beyond that point.and also the following messages are thrown
and
To Reproduce
Steps to reproduce the behavior:
Very minimal example code:
I also tried with password auth in code directly so that the room ID would immediately be associated with this crypto storage but that to also no avail (just using passwordLogin and taking the accessToken from the created MatrixClient)
Expected behavior
It should handle encrypted rooms correctly.
Log snippet
Dendrite log:
Additional context
I could trace the error back to this request https:/turt2live/matrix-bot-sdk/blob/main/src/e2ee/RustEngine.ts#L136 but im not exactly sure how to interpret this as im not familiar with "OlmMachine".
Dendrite source code I speculate the error might be from but im not absolutely sure about it: https:/matrix-org/dendrite/blob/main/userapi/internal/key_api.go#L685-L695
The text was updated successfully, but these errors were encountered: