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

+ 6 - 4
iOSClient/More/NCMore.swift

@@ -317,10 +317,12 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
             cell.backgroundColor = NCBrandColor.sharedInstance.backgroundCell
             cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
             
-            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
-                cell.status.text = status.statusMessage
+            if NCManageDatabase.sharedInstance.getCapabilitiesServerBool(account: 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
+                    cell.status.text = status.statusMessage
+                }
             }
             
             return cell