mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-25 18:08:14 +08:00
2631b908b6
* update the display of decryption failures due to failed trust requirement * add test for not showing shield
46 lines
1.9 KiB
Plaintext
46 lines
1.9 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`DecryptionFailureBody Should display "The sender has blocked you from receiving this message" 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_DecryptionFailureBody mx_EventTile_content"
|
|
>
|
|
The sender has blocked you from receiving this message because your device is unverified
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`DecryptionFailureBody Should display "Unable to decrypt message" 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_DecryptionFailureBody mx_EventTile_content"
|
|
>
|
|
Unable to decrypt message
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`DecryptionFailureBody should handle messages from users who change identities after verification 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_DecryptionFailureBody mx_EventTile_content mx_DecryptionFailureSenderTrustRequirement"
|
|
>
|
|
<span>
|
|
<svg
|
|
class="mx_Icon mx_Icon_16"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 24 24"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-.9-.146-1.767-.438-2.6A7.951 7.951 0 0 0 18.3 7.1L7.1 18.3c.7.55 1.467.97 2.3 1.262.833.292 1.7.438 2.6.438Zm-6.3-3.1L16.9 5.7a7.95 7.95 0 0 0-2.3-1.263A7.813 7.813 0 0 0 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 .9.146 1.767.438 2.6A7.95 7.95 0 0 0 5.7 16.9Z"
|
|
/>
|
|
</svg>
|
|
Sender's verified identity has changed
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|