Переглянути джерело

use better explanation if an account creation qr code has been scanned and an account already exists

cyberta 3 роки тому
батько
коміт
6f99a8e4f3
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      deltachat-ios/Controller/WelcomeViewController.swift

+ 3 - 1
deltachat-ios/Controller/WelcomeViewController.swift

@@ -328,7 +328,9 @@ extension WelcomeViewController: QrCodeReaderDelegate {
     }
 
     private func confirmAccountCreationAlert(accountDomain domain: String, qrCode: String) {
-        let title = String.localizedStringWithFormat(String.localized("qraccount_ask_create_and_login"), domain)
+        let title = String.localizedStringWithFormat(
+            String.localized(dcAccounts.getAll().count > 1 ? "qraccount_ask_create_and_login_another" : "qraccount_ask_create_and_login"),
+            domain)
         let alert = UIAlertController(title: title, message: nil, preferredStyle: .alert)
 
         let okAction = UIAlertAction(