Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

[BUG] After setting up access token, the bot is unable to find correct session id in decryption #48

@MalcolmMielle

Description

@MalcolmMielle

Thanks for the great library. I have a problem when switching to the access token

Describe the bug
The bot worked fine with the password. After switching to the access token I have the error "Error decrypting megolm event, no session found with session id XXXXX".
Switching back to the password, the bot seems to still be broken with the same error.

Changing the device_id and using the password again makes the bot functional again.

To Reproduce

Create a ping bot. use niocli to generate the access token. Join a room with the bot and try to use the ping command. The error is then:

Received a undecryptable Megolm event from a device with no Olm sessions: @account:homeserver SOMESESSIONVALUE
Error decrypting megolm event, no session found with session id LONGIDSESSION for room !ROOMNAME:homeserver

Expected behavior
The bot should behave the same with the access token and the password.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions