-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add key storage toggle to Encryption settings #29310
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we should use CryptoEvent.KeyBackupStatus
. That said, maybe this is good enough and we should just correct the comments, and move on.
// of megolm key backup has changed on the user's account (there's no event emitted for megolm | ||
// key backup enabled state changing, so we use this instead). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no event emitted for megolm key backup enabled state changing
I don't think that's actually true: isn't CryptoEvent.KeyBackupStatus
what you need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, not sure why I didn't spot that before. Changed it to use that and all seems to be working nicely.
src/components/views/settings/tabs/user/EncryptionUserSettingsTab.tsx
Outdated
Show resolved
Hide resolved
src/components/views/settings/tabs/user/EncryptionUserSettingsTab.tsx
Outdated
Show resolved
Hide resolved
src/components/viewmodels/settings/encryption/KeyStoragePanelViewModel.ts
Outdated
Show resolved
Hide resolved
src/components/viewmodels/settings/encryption/KeyStoragePanelViewModel.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Richard van der Hoff <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise!
// Note that this could potentially update the UI while the user is trying to do something, although | ||
// if their account data is changing then it implies that they're changing encryption related things | ||
// on another device. This code is written with the assumption that it's better for the UI to refresh | ||
// and be up to date with whatever changes they've made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still talks about account data, which I think is incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, good catch.
Which has gained nowrap due to 917d53a
#29113 minus a couple of things that got split out
Checklist
public
/exported
symbols have accurate TSDoc documentation.