mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
KeyVerificationConclusionBubbleCell: Update warning title and badge image.
This commit is contained in:
+2
-18
@@ -81,24 +81,8 @@ class KeyVerificationConclusionBubbleCell: KeyVerificationBaseBubbleCell {
|
||||
badgeImage = Asset.Images.encryptionTrusted.image
|
||||
title = VectorL10n.keyVerificationTileConclusionDoneTitle
|
||||
case .keyVerificationCancel:
|
||||
badgeImage = Asset.Images.encryptionNormal.image
|
||||
|
||||
// TODO: Use right titles here
|
||||
if let keyVerification = roomBubbleData.keyVerification, let cancelCodeValue = keyVerification.transaction?.reasonCancelCode?.value {
|
||||
switch cancelCodeValue {
|
||||
case MXTransactionCancelCode.mismatchedSas().value:
|
||||
title = "TODO"
|
||||
case MXTransactionCancelCode.unexpectedMessage().value:
|
||||
title = "TODO"
|
||||
case MXTransactionCancelCode.mismatchedCommitment().value:
|
||||
title = "TODO"
|
||||
default:
|
||||
title = nil
|
||||
}
|
||||
} else {
|
||||
title = nil
|
||||
}
|
||||
|
||||
badgeImage = Asset.Images.encryptionWarning.image
|
||||
title = VectorL10n.keyVerificationTileConclusionWarningTitle
|
||||
default:
|
||||
badgeImage = nil
|
||||
title = nil
|
||||
|
||||
Reference in New Issue
Block a user