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

487 remove reinit button in error message #488

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions patches/cross-signing-ui/matrix-react-sdk+3.68.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ index 3171a0e..8751e6b 100644
aria-label={_t("Skip verification for now")}
/>
diff --git a/node_modules/matrix-react-sdk/src/components/structures/auth/SetupEncryptionBody.tsx b/node_modules/matrix-react-sdk/src/components/structures/auth/SetupEncryptionBody.tsx
index fe8a24a..025b10c 100644
index fe8a24a..4611cb6 100644
--- a/node_modules/matrix-react-sdk/src/components/structures/auth/SetupEncryptionBody.tsx
+++ b/node_modules/matrix-react-sdk/src/components/structures/auth/SetupEncryptionBody.tsx
@@ -164,13 +164,23 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
Expand All @@ -166,7 +166,7 @@ index fe8a24a..025b10c 100644
+ )
+ }
</p>

+ {/* :tchap: replace button of proceed with reset by a no-effect Continue button */}
<div className="mx_CompleteSecurity_actionRow">
+ <AccessibleButton kind="primary" onClick={this.onSkipConfirmClick}>
Expand All @@ -176,13 +176,37 @@ index fe8a24a..025b10c 100644
+ {/*
<AccessibleButton kind="primary" onClick={this.onResetConfirmClick}>
{_t("Proceed with reset")}
</AccessibleButton>
</AccessibleButton>
+ :tchap: end
+ */
+ }
</div>
</div>
);
diff --git a/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx b/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx
index 7849f63..d174462 100644
--- a/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx
+++ b/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx
@@ -180,11 +180,19 @@ export const DecryptionFailureBar: React.FC<IProps> = ({ failures }) => {
)}
</React.Fragment>
);
+ /* :tchap: replace reset button by open-security button
button = (
<AccessibleButton kind="primary" onClick={onResetClick}>
{_t("Reset")}
</AccessibleButton>
);
+ */
+ button = (
+ <AccessibleButton kind="primary" onClick={onDeviceListClick}>
+ {_t("Security & Privacy")}
+ </AccessibleButton>
+ );
+ /* :tchap: end */
}
} else if (hasOtherVerifiedDevices) {
headline = <React.Fragment>{_t("Open another device to load encrypted messages")}</React.Fragment>;
diff --git a/node_modules/matrix-react-sdk/src/toasts/SetupEncryptionToast.ts b/node_modules/matrix-react-sdk/src/toasts/SetupEncryptionToast.ts
index 3b60705..aeeaee0 100644
--- a/node_modules/matrix-react-sdk/src/toasts/SetupEncryptionToast.ts
Expand Down
5 changes: 3 additions & 2 deletions patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,15 @@
},
"cross-signing-ui": {
"comments": "reword cross-signing dialogs and remove confirmation dialog",
"github-issue": "https://github.com/tchapgouv/tchap-web-v4/issues/406",
"github-issue": "https://github.com/tchapgouv/tchap-web-v4/issues/406,https://github.com/tchapgouv/tchap-web-v4/issues/487",
"package": "matrix-react-sdk",
"files": [
"src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx",
"src/toasts/SetupEncryptionToast.ts",
"src/components/structures/auth/CompleteSecurity.tsx",
"res/css/views/auth/_CompleteSecurityBody.pcss",
"src/components/structures/auth/SetupEncryptionBody.tsx"
"src/components/structures/auth/SetupEncryptionBody.tsx",
"src/components/views/rooms/DecryptionFailureBar.tsx"
]
},
"temp-settings-remove-enable-email-notifications-option": {
Expand Down
8 changes: 8 additions & 0 deletions src/i18n/strings/tchap_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -753,5 +753,13 @@
"Unable to verify this device": {
"fr": "Vous vous connectez à un nouvel appareil",
"en": "You are logging into a new device"
},
"Reset your keys to prevent future decryption errors": {
"fr": "Activez la sauvegarde automatique des messages",
"en": "Enable automatic secure backup"
},
"You will not be able to access old undecryptable messages, but resetting your keys will allow you to receive new messages.": {
"fr": "Pour éviter la perte de vos messages, vous pouvez désormais activer cette nouvelle fonctionnalité Tchap dans les paramètres de sécurité",
"en": "To prevent the loss of your messages, you can now activate this new Tchap feature in the security settings"
}
}