poljar / weechat-matrix

Weechat Matrix protocol script written in python
Other
964 stars 122 forks source link

New messages not shown #185

Open apmole opened 4 years ago

apmole commented 4 years ago

Repro steps

  1. On Fedora 32, I installed the packaged weechat-2.8-1 and libolm-3.1.4-2.

  2. I installed weechat-matrix according to the instructions on README.md in this repository with a virtualenv in ~/.weechat/python/venv.

  3. I configured the Matrix server, connected and switched to an existing room. → Previous messages in the room are being shown with <Unable to decrypt: The sender's device has not sent us the keys for this message>.

  4. I successfully ran /olm verification ... and /olm verify ... to verify existing devices in the room.

  5. I tried to send messages between a Riot instance and this Weechat instance in this room.

Expected: Encrypted authenticated messages are being received in Riot and Weechat. Actual: When a message is sent from Riot, in Weechat, the terminal bell rings. However, not a single character changes in the Weechat’s terminal window. When a message is sent from Weechat, no new message is displayed in Riot.

poljar commented 4 years ago

Older messages won't be decryptable unless you export your keys from Riot and import them in Weechat.

I have no idea why messages aren't being received though, that's a separate issue and first time I hear about this kind of bug.