marinofaggiana 4 năm trước cách đây
mục cha
commit
50a144a26b
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      iOSClient/Transfers/CCTransfers.m

+ 3 - 1
iOSClient/Transfers/CCTransfers.m

@@ -263,8 +263,10 @@
 - (void)reloadDatasource
 {
     // test
-    if (appDelegate.activeAccount.length == 0 || self.view.window == nil)
+    if (appDelegate.activeAccount.length == 0 || self.view.window == nil) {
         return;
+    }
+    
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
         
         NSArray *recordsTableMetadata = [[NCManageDatabase sharedInstance] getMetadatasWithPredicate:[NSPredicate predicateWithFormat:@"(session CONTAINS 'upload') OR (session CONTAINS 'download')"] page:1 limit:100 sorted:@"sessionTaskIdentifier" ascending:NO];