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

Hide DescriptionFailureBar when there is no available devices #10797

Closed
wants to merge 2 commits into from
Closed
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
13 changes: 3 additions & 10 deletions src/components/views/rooms/DecryptionFailureBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,9 @@ export const DecryptionFailureBar: React.FC<IProps> = ({ failures }) => {
</AccessibleButton>
);
} else {
className = "mx_DecryptionFailureBar";
headline = <React.Fragment>{_t("Some messages could not be decrypted")}</React.Fragment>;
message = (
<React.Fragment>
{_t(
"Unfortunately, there are no other verified devices to request decryption keys from. " +
"Signing in and verifying other devices may help avoid this situation in the future.",
)}
</React.Fragment>
);
// In case where no other devices are available, the bar is hided
// See https://github.com/vector-im/element-meta/issues/1358
return null;
}

let keyRequestButton = <React.Fragment />;
Expand Down