tulir / gomuks

A terminal based Matrix client written in Go.
https://maunium.net/go/gomuks
GNU Affero General Public License v3.0
1.34k stars 120 forks source link

Gomuks isn't receiving new keys? #380

Open ghost opened 2 years ago

ghost commented 2 years ago

I'm moving from element to gomuks, and importing the keys from element has gone nicely, and the messages are all viewable. That is, until some time after importing keys, new messages from others fail with "failed to decrypt megolm event: no session with given ID found (ID [id])" I have a verified session. I can decrypt the messages if I routinely export keys from element and import them to gomuks, but this would be incredibly obnoxious to keep up. Is there something that I need to do to not have to reimport keys?

jficz commented 1 year ago

I've started to get random encryption-key related messages about two days ago. The mentioned megolm event error above, and also errors from one of my bridges: Your message was not bridged: failed to get group session: group session has been withheld: m.unauthorized (This device does not share keys to other users).

I don't have problems with any other client I use. The only thing that helps is "factory reset" of Gomuks, setting up everything from scratch with new device ID and reimporting the keys. Tried deleting cryptdb and clear cache but that doesn't help.

jficz commented 1 year ago

ok, the last paragraph isn't entirely true. When I sent a few messages from another client, things "caught up" somehow, without any action taken on either Gomuks or server side

jmetz commented 11 months ago

I get the same behavior as @jficz (though on a new device am still waiting for the catch-up)