diff --git a/src/components/views/messages/EncryptionEvent.js b/src/components/views/messages/EncryptionEvent.js index ab0f3fde2e..a9ce10d202 100644 --- a/src/components/views/messages/EncryptionEvent.js +++ b/src/components/views/messages/EncryptionEvent.js @@ -25,10 +25,8 @@ export default class EncryptionEvent extends React.Component { let body; let classes = "mx_EventTile_bubble mx_cryptoEvent mx_cryptoEvent_icon"; - if ( - mxEvent.getContent().algorithm === 'm.megolm.v1.aes-sha2' && - MatrixClientPeg.get().isRoomEncrypted(mxEvent.getRoomId()) - ) { + const isRoomEncrypted = MatrixClientPeg.get().isRoomEncrypted(mxEvent.getRoomId()); + if (mxEvent.getContent().algorithm === 'm.megolm.v1.aes-sha2' && isRoomEncrypted) { body =
{_t("Encryption enabled")}
@@ -38,6 +36,13 @@ export default class EncryptionEvent extends React.Component { )}
; + } else if (isRoomEncrypted) { + body =
+
{_t("Encryption enabled")}
+
+ {_t("Ignored attempt to disable encryption")} +
+
; } else { body =
{_t("Encryption not enabled")}
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index a377663570..0057f94112 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1376,6 +1376,7 @@ "View Source": "View Source", "Encryption enabled": "Encryption enabled", "Messages in this room are end-to-end encrypted. Learn more & verify this user in their user profile.": "Messages in this room are end-to-end encrypted. Learn more & verify this user in their user profile.", + "Ignored attempt to disable encryption": "Ignored attempt to disable encryption", "Encryption not enabled": "Encryption not enabled", "The encryption used by this room isn't supported.": "The encryption used by this room isn't supported.", "Error decrypting audio": "Error decrypting audio",