Fix no deleted device warning on long press menu

This commit is contained in:
Valere 2022-11-25 09:04:31 +01:00
parent d302fdc655
commit 2f3bbab4c4
2 changed files with 10 additions and 2 deletions

View File

@ -2625,6 +2625,7 @@
<string name="unencrypted">Unencrypted</string> <string name="unencrypted">Unencrypted</string>
<string name="encrypted_unverified">Encrypted by an unverified device</string> <string name="encrypted_unverified">Encrypted by an unverified device</string>
<string name="encrypted_by_deleted">Encrypted by a deleted device</string>
<string name="key_authenticity_not_guaranteed">The authenticity of this encrypted message can\'t be guaranteed on this device.</string> <string name="key_authenticity_not_guaranteed">The authenticity of this encrypted message can\'t be guaranteed on this device.</string>
<string name="review_logins">Review where youre logged in</string> <string name="review_logins">Review where youre logged in</string>
<string name="verify_other_sessions">Verify all your sessions to ensure your account &amp; messages are safe</string> <string name="verify_other_sessions">Verify all your sessions to ensure your account &amp; messages are safe</string>

View File

@ -151,8 +151,15 @@ class MessageActionsEpoxyController @Inject constructor(
drawableStart(R.drawable.ic_shield_gray) drawableStart(R.drawable.ic_shield_gray)
} }
} }
else -> { E2EDecoration.WARN_SENT_BY_DELETED_SESSION -> {
// nothing bottomSheetSendStateItem {
id("e2e_deleted")
showProgress(false)
text(host.stringProvider.getString(R.string.encrypted_by_deleted))
drawableStart(R.drawable.ic_shield_warning_small)
}
}
E2EDecoration.NONE -> {
} }
} }