Browse Source

Add Activity error for quota

Marino Faggiana 7 năm trước cách đây
mục cha
commit
801764400f
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      iOSClient/Main/CCMore.swift

+ 6 - 0
iOSClient/Main/CCMore.swift

@@ -216,6 +216,12 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource, CCLo
             let quotaUsed : String = CCUtility.transformedSize(Double(tabAccount.quotaUsed))
                 
             labelQuota.text = String.localizedStringWithFormat(NSLocalizedString("_quota_using_", comment: ""), quotaUsed, quota)
+            
+        } else {
+            
+            // Activity
+            let note = "Quota Relative \(tabAccount.quotaRelative), Quota Total \(tabAccount.quotaTotal), Quota Used \(tabAccount.quotaUsed)"
+            NCManageDatabase.sharedInstance.addActivityClient("", fileID: "", action: k_activityDebugActionCapabilities, selector: "Quota Server", note: note, type: k_activityTypeFailure, verbose: false, activeUrl: "")
         }
     }