浏览代码

improved code

marinofaggiana 4 年之前
父节点
当前提交
01be5589d4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/More/NCMore.swift

+ 1 - 1
iOSClient/More/NCMore.swift

@@ -317,7 +317,7 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
             cell.backgroundColor = NCBrandColor.sharedInstance.backgroundCell
             cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
             
-            if NCManageDatabase.sharedInstance.getCapabilitiesServerBool(account: account, elements: NCElementsJSON.shared.capabilitiesUserStatusEnabled, exists: false) {
+            if NCManageDatabase.sharedInstance.getCapabilitiesServerBool(account: appDelegate.account, elements: NCElementsJSON.shared.capabilitiesUserStatusEnabled, exists: false) {
                 if let account = NCManageDatabase.sharedInstance.getAccount(predicate: NSPredicate(format: "account == %@", appDelegate.account)) {
                     let status = NCUtility.shared.getUserStatus(userIcon: account.userStatusIcon, userStatus: account.userStatusStatus, userMessage: account.userStatusMessage)
                     cell.icon.image = status.onlineStatus