瀏覽代碼

use title instead of value for account config error hint

cyberta 5 年之前
父節點
當前提交
ccec8701f9
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      DcShare/Controller/ShareViewController.swift

+ 1 - 2
DcShare/Controller/ShareViewController.swift

@@ -68,7 +68,6 @@ class ShareViewController: SLComposeServiceViewController {
             dcContext.openDatabase(dbFile: dbHelper.sharedDbFile)
             isAccountConfigured = dcContext.isConfigured()
             if isAccountConfigured {
-                isAccountConfigured = true
                 selectedChatId = dcContext.getChatIdByContactId(contactId: Int(DC_CONTACT_ID_SELF))
                 if let chatId = selectedChatId {
                     selectedChat = dcContext.getChat(chatId: chatId)
@@ -144,7 +143,7 @@ class ShareViewController: SLComposeServiceViewController {
                 self.pushConfigurationViewController(chatListController)
             }
         } else {
-            item?.value = String.localized("share_account_not_configured")
+            item?.title = String.localized("share_account_not_configured")
         }
 
         return [item as Any]