diff --git a/library/ui-strings/src/main/res/values/strings.xml b/library/ui-strings/src/main/res/values/strings.xml index 42045d1579..4104f9abce 100644 --- a/library/ui-strings/src/main/res/values/strings.xml +++ b/library/ui-strings/src/main/res/values/strings.xml @@ -2625,6 +2625,7 @@ Unencrypted Encrypted by an unverified device + Encrypted by a deleted device The authenticity of this encrypted message can\'t be guaranteed on this device. Review where you’re logged in Verify all your sessions to ensure your account & messages are safe diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt index 5daf82fae6..307b7f4b99 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsEpoxyController.kt @@ -151,8 +151,15 @@ class MessageActionsEpoxyController @Inject constructor( drawableStart(R.drawable.ic_shield_gray) } } - else -> { - // nothing + E2EDecoration.WARN_SENT_BY_DELETED_SESSION -> { + bottomSheetSendStateItem { + id("e2e_deleted") + showProgress(false) + text(host.stringProvider.getString(R.string.encrypted_by_deleted)) + drawableStart(R.drawable.ic_shield_warning_small) + } + } + E2EDecoration.NONE -> { } }