Fix / Green shield in conclusion title when verified from private keys

This commit is contained in:
Valere 2020-02-21 08:53:44 +01:00 committed by Benoit Marty
parent 94d36e0c85
commit bf23094158
1 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,9 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment() {
}
state.otherUserMxItem?.let { matrixItem ->
if (state.isMe) {
if (state.sasTransactionState == VerificationTxState.Verified || state.qrTransactionState == VerificationTxState.Verified) {
if (state.sasTransactionState == VerificationTxState.Verified
|| state.qrTransactionState == VerificationTxState.Verified
|| state.verifiedFromPrivateKeys) {
otherUserAvatarImageView.setImageResource(R.drawable.ic_shield_trusted)
} else {
otherUserAvatarImageView.setImageResource(R.drawable.ic_shield_warning)