marinofaggiana 4 years ago
parent
commit
ca5c08f91a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      iOSClient/Settings/CCManageAccount.m

+ 2 - 0
iOSClient/Settings/CCManageAccount.m

@@ -115,6 +115,7 @@
         if (accounts.count == 0) row.disabled = @YES;
         [section addFormRow:row];
         
+#if TARGET_OS_SIMULATOR
         // Set user status
         if (@available(iOS 13.0, *)) {
             BOOL userStatus = [[NCManageDatabase sharedInstance] getCapabilitiesServerBoolWithAccount:accountActive.account elements:NCElementsJSON.shared.capabilitiesUserStatusEnabled exists:false];
@@ -130,6 +131,7 @@
                 [section addFormRow:row];
             }
         }
+#endif
     }
     
     // Section : USER INFORMATION -------------------------------------------