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

Can't verify gomuks session from Element #425

Closed jjakob closed 1 year ago

jjakob commented 1 year ago

I'm having problems verifying my gomuks session from Element. I verified the Element session (which was the first session after registering) which reset cross-signing keys. I saved the recovery key to a file. Then I tried to verify gomuks with /verify-device. Everything works, I see the emojis on both sides and can confirm on both ends, gomuks says success but Element says the other device has cancelled verification. The gomuks session remains unverified.

I also tried both manual verification methods mentioned here #205

jjakob commented 1 year ago

I tried to /clearcache and /reset-session with no change. Resetting the session I think caused Element to say that every message sent before was "encrypted with a deleted session". Every time I restart gomuks I see a different fingerprint with /fingerprint, but on Element side gomuks' fingerprint stays the same. Suffice to say I'm out of ideas. I might try completely deleting all gomuks data from .config, .local, .cache and logging in again.

tulir commented 1 year ago

You probably corrupted your session somehow, so you should log out and back in

jjakob commented 1 year ago

Right, that seems to have fixed it. I logged out, deleted gomuks data, logged back in, verification worked. Imported encryption keys from Element and I can see all messages. I still have to see if other people can see my messages (before they couldn't, it said "waiting for message"). I don't know what the cause was but I saved the old gomuks folders before deleting them if there is any point in analyzing them?