Verification: Do not talk about QR code if only emoji is possible

#3035
This commit is contained in:
manuroe
2020-04-28 18:16:37 +02:00
parent c67c7d76d1
commit 39d5a743ac
4 changed files with 17 additions and 0 deletions
@@ -184,6 +184,12 @@ final class KeyVerificationVerifyByScanningViewController: UIViewController {
self.titleLabel.text = viewData.verificationKind.verificationTitle
self.qrCodeContainerView.isHidden = hideQRCodeImage
self.scanButtonContainerView.isHidden = !viewData.showScanAction
if viewData.qrCodeData == nil && viewData.showScanAction == false {
// Update the copy if QR code scanning is not possible at all
self.informationLabel.text = VectorL10n.keyVerificationVerifyQrCodeEmojiInformation
self.cannotScanButton.setTitle(VectorL10n.keyVerificationVerifyQrCodeStartEmojiAction, for: .normal)
}
}
private func render(error: Error) {