Browse Source

use title instead of value for account config error hint

cyberta 5 years ago
parent
commit
ccec8701f9
1 changed files with 1 additions and 2 deletions
  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]