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

Commit 5202c0a

Browse files
Show a gray shield when encrypted by deleted session (#6119)
1 parent 459b5cc commit 5202c0a

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

res/css/views/rooms/_EventTile.scss

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -432,31 +432,15 @@ $left-gutter: 64px;
432432
}
433433
}
434434

435-
.mx_EventTile_e2eIcon_undecryptable, .mx_EventTile_e2eIcon_unverified {
435+
.mx_EventTile_e2eIcon_warning {
436436
&::after {
437437
mask-image: url('$(res)/img/e2e/warning.svg');
438438
background-color: $notice-primary-color;
439439
}
440440
opacity: 1;
441441
}
442442

443-
.mx_EventTile_e2eIcon_unknown {
444-
&::after {
445-
mask-image: url('$(res)/img/e2e/warning.svg');
446-
background-color: $notice-primary-color;
447-
}
448-
opacity: 1;
449-
}
450-
451-
.mx_EventTile_e2eIcon_unencrypted {
452-
&::after {
453-
mask-image: url('$(res)/img/e2e/warning.svg');
454-
background-color: $notice-primary-color;
455-
}
456-
opacity: 1;
457-
}
458-
459-
.mx_EventTile_e2eIcon_unauthenticated {
443+
.mx_EventTile_e2eIcon_normal {
460444
&::after {
461445
mask-image: url('$(res)/img/e2e/normal.svg');
462446
background-color: $composer-e2e-icon-color;

src/components/views/rooms/EventTile.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,25 +1405,25 @@ export function haveTileForEvent(e: MatrixEvent, showHiddenEvents?: boolean) {
14051405

14061406
function E2ePadlockUndecryptable(props) {
14071407
return (
1408-
<E2ePadlock title={_t("This message cannot be decrypted")} icon="undecryptable" {...props} />
1408+
<E2ePadlock title={_t("This message cannot be decrypted")} icon="warning" {...props} />
14091409
);
14101410
}
14111411

14121412
function E2ePadlockUnverified(props) {
14131413
return (
1414-
<E2ePadlock title={_t("Encrypted by an unverified session")} icon="unverified" {...props} />
1414+
<E2ePadlock title={_t("Encrypted by an unverified session")} icon="warning" {...props} />
14151415
);
14161416
}
14171417

14181418
function E2ePadlockUnencrypted(props) {
14191419
return (
1420-
<E2ePadlock title={_t("Unencrypted")} icon="unencrypted" {...props} />
1420+
<E2ePadlock title={_t("Unencrypted")} icon="warning" {...props} />
14211421
);
14221422
}
14231423

14241424
function E2ePadlockUnknown(props) {
14251425
return (
1426-
<E2ePadlock title={_t("Encrypted by a deleted session")} icon="unknown" {...props} />
1426+
<E2ePadlock title={_t("Encrypted by a deleted session")} icon="normal" {...props} />
14271427
);
14281428
}
14291429

0 commit comments

Comments
 (0)