Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Notify user when crypto data is missing #2841

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Mar 28, 2019

If we have account data in local storage but nothing in the crypto store, it
generally means the browser has evicted IndexedDB out from under us. This adds a
modal to explain the situation and offer to completely clear storage to get
things back to normal.

image

Fixes element-hq/element-web#9109
Requires element-hq/element-web#9325

@jryans jryans requested review from a team and removed request for a team March 28, 2019 16:39
@jryans
Copy link
Collaborator Author

jryans commented Mar 28, 2019

I realized this part isn't quite ready yet. I need to change from clearing storage to fully signing out so that a fresh device ID is assigned.

@jryans
Copy link
Collaborator Author

jryans commented Mar 29, 2019

@nadonomy has reviewed and improved the modal wording here.

If we have account data in local storage but nothing in the crypto store, it
generally means the browser has evicted IndexedDB out from under us. This adds a
modal to explain the situation and offer to completely clear storage to get
things back to normal.

Fixes element-hq/element-web#9109
@jryans
Copy link
Collaborator Author

jryans commented Mar 29, 2019

Okay, tests passing finally, ready for review again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants