-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes Riot will say a backup was created by an unknown device when it looks like the device should be known. #8213
Comments
I'll try and get some solid repro steps for this, if I can't we can still look at the code/add some logging to see what's going on. |
Well, I'm seeing it again. And the (extra) problem with it is that when key backup is in this state, you also get the wrong SMR warning when you go to an encrypted room, which invites you to click 'set up' and create a totally new backup |
Right, this time I:
|
@ara4n has offered to take a look at this. |
Thoughts from @dbkr:
|
This is a red herring - you get this whenever your backup has been signed by a device you haven't verified. |
Okay, I now know some things. The appearance of this issue is dependent upon the information stored in your indexeddb When you log in from a fresh client, this table contains a json object with a reference to just your new device. Certain things will trigger its being poplated with a full list of your devices:
Empirically, just logging in on a new device does not prompt your other devices to refresh their list of your devices stored in The problem is, the key backup UX appears to be assuming that |
Dave is 95% confident that adding a new device is supposed to trigger a poke to your existing devices prompting them to update their local As I said above, this isn't happening. If it were happening in the past, it could have been broken for ages without our noticing - prior to key backup, you only needed a fresh list of your devices before sending an encrypted message, and however it's happening The upshot of this is if you create two devices, set up key backup on one and then try to use that backup on the second, your second device will say the backup is signed by an 'unknown' device. You can force
The table of devices is populated by a call to /devices, so it contains fresh information. |
This was causing all the cross-signing stuff to fail and was almost certainly the cause of element-hq/element-web#8213
This ^ was almost certainly the cause of this bug |
https://github.com/matrix-org/riot-web-rageshakes/issues/1174
The text was updated successfully, but these errors were encountered: