Skip to content
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

Let users clone e2e devices for the special case of logout+login? #4104

Closed
ara4n opened this issue May 30, 2017 · 3 comments
Closed

Let users clone e2e devices for the special case of logout+login? #4104

ara4n opened this issue May 30, 2017 · 3 comments

Comments

@ara4n
Copy link
Member

ara4n commented May 30, 2017

It's confusing that if you export your megolm keys, and then destroy the device and create a new one (by logout/login), you get a new device ID. For this very special case (i.e. on doing a logout where you are destroying the previous device), perhaps we should let the user dehydrate the device entirely so they can rehydrate it elsewhere in future. Except everything will break if they rehydrate it twice...

@ara4n
Copy link
Member Author

ara4n commented May 30, 2017

that said, @MatrixCoffee just pointed out that we could refcount the logins for a given device ID. So if you drop the ref from 1 to 0 when you /logout, and increase when you log back in again, we could perhaps prevent concurrent device disasters (especially if you also stored a checksum of a given device state when you dehydrate it by logging out, so that that state can only then be rehydrated a single time in future?)

@uhoreg
Copy link
Member

uhoreg commented Apr 17, 2019

related: #3825 (probably a dup)

@ara4n
Copy link
Member Author

ara4n commented Jul 11, 2022

in theory dehydrated devices fixes this.

@ara4n ara4n closed this as completed Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants