riot-web/test/unit-tests/components/views/dialogs
David Baker 980b922348
Enable key backup by default (#28691)
* Factor out crypto setup process into a store

To make components pure and avoid react 18 dev mode problems due
to components making requests when mounted.

* fix test

* test for the store

* Add comment

* Enable key backup by default

When we set up cross signing, so the key backup key will be stored locally along with the cross signing keys until the user sets up recovery (4s). This will mean that a user can restore their backup if they log in on a new device as long as they verify with the one they registered on.

Replaces https://github.com/element-hq/element-web/pull/28267

* Fix test

* Prompt user to set up 4S on logout

* Fix test

* Add playwright test for key backup by default

* Fix imports

* This isn't unexpected anymore

* Update doc

* Fix docs and function name on renderSetupBackupDialog()

* Use checkKeyBackupAndEnable

* Docs for setup encryption toast

* Also test the toast appears

* Update mock for the method we use now

* Okay fine I guess we need both

* Swap here too

* Fix comment & doc comments
2024-12-17 14:50:48 +00:00
..
__snapshots__ Remove manual device verification which is not supported by the new cryptography stack (#28588) 2024-12-03 15:26:37 +00:00
devtools
security Remove manual device verification which is not supported by the new cryptography stack (#28588) 2024-12-03 15:26:37 +00:00
spotlight
AccessSecretStorageDialog-test.tsx
AppDownloadDialog-test.tsx
AskInviteAnywayDialog-test.tsx
ChangelogDialog-test.tsx
ConfirmRedactDialog-test.tsx Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
ConfirmUserActionDialog-test.tsx
CreateRoomDialog-test.tsx
DevtoolsDialog-test.tsx
ExportDialog-test.tsx
FeedbackDialog-test.tsx
ForwardDialog-test.tsx Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `EventTile.tsx` (#28510) 2024-12-02 10:20:13 +00:00
IncomingSasDialog-test.tsx
InteractiveAuthDialog-test.tsx
InviteDialog-test.tsx
LogoutDialog-test.tsx Enable key backup by default (#28691) 2024-12-17 14:50:48 +00:00
ManageRestrictedJoinRuleDialog-test.tsx
MessageEditHistoryDialog-test.tsx
RoomSettingsDialog-test.tsx
ServerPickerDialog-test.tsx
ShareDialog-test.tsx New UX for Share dialog (#28598) 2024-12-02 18:10:17 +00:00
SpotlightDialog-test.tsx
UnpinAllDialog-test.tsx
UntrustedDeviceDialog-test.tsx Remove manual device verification which is not supported by the new cryptography stack (#28588) 2024-12-03 15:26:37 +00:00
UserSettingsDialog-test.tsx