-
-
Notifications
You must be signed in to change notification settings - Fork 812
Improve usability of the decryption banner #11012
Conversation
| className = "mx_DecryptionFailureBar mx_DecryptionFailureBar--withEnd"; | ||
| headline = <React.Fragment>{_t("Some messages could not be decrypted")}</React.Fragment>; | ||
| message = ( | ||
| <React.Fragment> |
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.
per our DM: this message is incorrect now
| let button = <React.Fragment />; | ||
| let keyRequestButton = <React.Fragment />; |
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 think we only need one of button and keyRequestButton now
| // In developerMode, we want to be able to resend manually key requests | ||
| } else if (developerMode && !needsVerification && hasOtherVerifiedDevices && anyUnrequestedSessions) { |
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.
The comment should really be inside the relevant if clause:
| // In developerMode, we want to be able to resend manually key requests | |
| } else if (developerMode && !needsVerification && hasOtherVerifiedDevices && anyUnrequestedSessions) { | |
| } else if (developerMode && !needsVerification && hasOtherVerifiedDevices && anyUnrequestedSessions) { | |
| // In developerMode, show a button to resend key requests if there are other devices we could request keys from. |
| }); | ||
|
|
||
| it("Displays a general error message if there are no other verified devices", async () => { | ||
| it("The banner is hidden if there are no other verified devices", async () => { |
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.
| it("The banner is hidden if there are no other verified devices", async () => { | |
| it("The banner is hidden if there is a key backup but no other verified devices", async () => { |
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.
it seems like the code doesn't actually care about key backup or other verified devices?
|
Irrelevant since element-hq/element-meta#1358 (comment) Closing it in favor of #11027. |
Checklist
Closes element-hq/element-meta#1358
Decrypting messages…description by a new onedeveloperModeis enabled, the device is verified, another device is verified and there is a unrequested session. It allows to send manually key request indeveloperMode.Here's what your changelog entry will look like:
✨ Features