瀏覽代碼

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(