Describe the bug
That the library does not read chats in encrypted rooms.
To Reproduce
Steps to reproduce the behavior:
- Enable encryption
- Connect to the server
- Invite the chat bot user to an encrypted and unencrypted room
- Send a message in the unencrypted room
- message gets handled by the bot.
- Send a message in the encrypted room.
- Message does not get handled by the bot.
Expected behavior
That there is some indication that either encryption is not enabled anyway, if the library get the value to enable encryption.
Or that there is a error decrypting messages in encrypted rooms.
(It can send unencrypted messages in encrypted rooms. It can also say it joined encrypted rooms)
Also if the following is true, it might not connect to the homeserver at all.
config.ignore_unverified_devices = True
Desktop (please complete the following information):
Ubuntu
Python 3.12.3
Additional context
Its possible i did something wrong, to connect to the homeserver.
But i just followed the examples. Did install the matrix-nio[e2e]==0.25.2 library.
And non-encrypted chat rooms work.
Is there any matrix-nio based python library that handles encryption?
Since i did see the following issues.
#93
https://github.com/matrix-nio/matrix-nio/issues/430
Is there any python based library that connects to matrix that handles encryption?
I did find a node library where encryption just worked to make a bot with.
https://github.com/turt2live/matrix-bot-sdk
Which seems to be using a rust library for the encryption part.
Bindings for python with that rust library can get generated. But i haven't looked into it more than generating those bindings.
https://github.com/matrix-org/matrix-rust-sdk
sudo apt-get install libsqlite3-dev libssl-dev
cargo build --release
cd uniffi-bindgen
cargo run --features=uniffi/cli --bin uniffi-bindgen generate --library ../target/release/libmatrix_sdk_ffi.so --language python --out-dir out
**Describe the bug**
That the library does not read chats in encrypted rooms.
**To Reproduce**
Steps to reproduce the behavior:
1. Enable encryption
2. Connect to the server
3. Invite the chat bot user to an encrypted and unencrypted room
4. Send a message in the unencrypted room
5. message gets handled by the bot.
6. Send a message in the encrypted room.
7. Message does **not** get handled by the bot.
**Expected behavior**
That there is some indication that either encryption is not enabled anyway, if the library get the value to enable encryption.
Or that there is a error decrypting messages in encrypted rooms.
(It can send unencrypted messages in encrypted rooms. It can also say it joined encrypted rooms)
Also if the following is true, it might not connect to the homeserver at all.
```
config.ignore_unverified_devices = True
```
**Desktop (please complete the following information):**
Ubuntu
Python 3.12.3
**Additional context**
Its possible i did something wrong, to connect to the homeserver.
But i just followed the examples. Did install the matrix-nio[e2e]==0.25.2 library.
And non-encrypted chat rooms work.
Is there any matrix-nio based python library that handles encryption?
Since i did see the following issues.
https://codeberg.org/imbev/simplematrixbotlib/issues/93
https://github.com/matrix-nio/matrix-nio/issues/430
Is there any python based library that connects to matrix that handles encryption?
I did find a node library where encryption just worked to make a bot with.
https://github.com/turt2live/matrix-bot-sdk
Which seems to be using a rust library for the encryption part.
Bindings for python with that rust library can get generated. But i haven't looked into it more than generating those bindings.
https://github.com/matrix-org/matrix-rust-sdk
```
sudo apt-get install libsqlite3-dev libssl-dev
cargo build --release
cd uniffi-bindgen
cargo run --features=uniffi/cli --bin uniffi-bindgen generate --library ../target/release/libmatrix_sdk_ffi.so --language python --out-dir out
```