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

Bot can decrypt messages but sends messages without sending keys to other participants in the room #196

Closed
freelock opened this issue Jan 15, 2022 · 2 comments · Fixed by #236
Assignees
Labels
bug Something isn't working e2ee Issue relating to encryption

Comments

@freelock
Copy link

Reposting here from matrix:r/matrix-bot-sdk:t2bot.io.

I successfully set up the RustSdkCrptoStorageProvider on my bot, and the bot reads encrypted messages and operates the same as it did before, other than now being able to read all encrypted messages. However, when it responds in an encrypted room, the messages it sends cannot be decrypted by any other room member.

Am I missing some sort of setup step to get the bot to send keys to other room participants?

This is using the bot-sdk as described here: https://turt2live.github.io/matrix-bot-sdk/tutorial-encryption-bots.html

I have tried getting a new auth token (using curl to retrieve from the authentication endpoint) blowing the contents of the storage directory away each time.

I've also tried inviting the bot to brand new e2e rooms, and everything I could think of -- I'm seeing the same result in all cases -- the bot can read encrypted messages and respond, but the responses are not decryptable because "** Unable to decrypt: The sender's device has not sent us the keys for this message. **".

I've also tried with other user accounts on different homeservers. If I log into Element with the bot account, all the messages are decryptable for the bot users.

@nforgerit
Copy link

I can confirm this problem with the exact same setup. Any hints on what the problem could be?

@turt2live turt2live added bug Something isn't working e2ee Issue relating to encryption labels May 30, 2022
@turt2live
Copy link
Owner

I think this will be fixed by new bindings: #236

@turt2live turt2live self-assigned this Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working e2ee Issue relating to encryption
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants