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

Add config option to autorageshake when key backup is not enabled #7741

Merged
merged 9 commits into from
Feb 11, 2022

Conversation

kerryarchibald
Copy link
Contributor

@kerryarchibald kerryarchibald commented Feb 8, 2022

Add a hook in encryption setup to automatically send a rageshake report when:

  • crypto setup is complete and key backup has not been enabled
  • key backup is ready but not enabled

https://element-io.atlassian.net/browse/PSE-327

task: https://github.com/orgs/vector-im/projects/16#card-76253406

Example report: https://github.com/matrix-org/element-web-rageshakes/issues/10530


This PR currently has no changelog labels, so will not be included in changelogs.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

Preview: https://pr7741--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

Kerry Archibald added 6 commits February 8, 2022 12:31
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

displayName: _td("Automatically send debug logs when key backup is not functioning"),
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG,
default: false,
controller: new ReloadOnChangeController(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toggling that setting probably does not warrant a whole app restart?
At least there's nothing I can spot here that would warrant that, but might have missed it

Suggested change
controller: new ReloadOnChangeController(),

Signed-off-by: Kerry Archibald <[email protected]>
@kerryarchibald kerryarchibald merged commit b5e7d12 into develop Feb 11, 2022
@kerryarchibald kerryarchibald deleted the pse-327/key-backup-autoreport branch February 11, 2022 13:00
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