Преглед изворни кода

Merge pull request #640 from deltachat/warn-qr-account

show info, when trying to scan a QR-account-setup outside setup
nayooti пре 5 година
родитељ
комит
0fa59f9eaa
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      deltachat-ios/Controller/QrViewController.swift

+ 5 - 0
deltachat-ios/Controller/QrViewController.swift

@@ -306,6 +306,11 @@ extension QrViewController: QrCodeReaderDelegate {
             alert.addAction(UIAlertAction(title: String.localized("cancel"), style: .default, handler: nil))
             present(alert, animated: true, completion: nil)
 
+        case DC_QR_ACCOUNT:
+            let alert = UIAlertController(title: String.localized("qraccount_use_on_new_install"), message: nil, preferredStyle: .alert)
+            alert.addAction(UIAlertAction(title: String.localized("ok"), style: .default))
+            present(alert, animated: true)
+
         default:
             var msg = String.localizedStringWithFormat(String.localized("qrscan_contains_text"), code)
             if state == DC_QR_ERROR {