|
@@ -34,6 +34,10 @@
|
|
|
NSString *directoryUser;
|
|
|
|
|
|
BOOL _loadingFolder;
|
|
|
+
|
|
|
+ // Automatic Upload Folder
|
|
|
+ NSString *_autoUploadFileName;
|
|
|
+ NSString *_autoUploadDirectory;
|
|
|
}
|
|
|
@end
|
|
|
|
|
@@ -336,7 +340,12 @@
|
|
|
// insert in Database
|
|
|
metadatas = [[NCManageDatabase sharedInstance] addMetadatas:metadatasToInsertInDB serverUrl:metadataNet.serverUrl];
|
|
|
|
|
|
+ // get auto upload folder
|
|
|
+ _autoUploadFileName = [[NCManageDatabase sharedInstance] getAccountAutoUploadFileName];
|
|
|
+ _autoUploadDirectory = [[NCManageDatabase sharedInstance] getAccountAutoUploadDirectory:activeUrl];
|
|
|
+
|
|
|
_loadingFolder = NO;
|
|
|
+
|
|
|
[self.tableView reloadData];
|
|
|
}
|
|
|
|
|
@@ -441,7 +450,14 @@
|
|
|
cell.textLabel.textColor = [UIColor blackColor];
|
|
|
|
|
|
cell.detailTextLabel.text = @"";
|
|
|
- cell.imageView.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:metadata.iconName] color:[NCBrandColor sharedInstance].brand];
|
|
|
+
|
|
|
+ if (metadata.e2eEncrypted)
|
|
|
+ cell.imageView.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"folderEncrypted"] color:[NCBrandColor sharedInstance].brand];
|
|
|
+ else if ([metadata.fileName isEqualToString:_autoUploadFileName] && [self.serverUrl isEqualToString:_autoUploadDirectory])
|
|
|
+ cell.imageView.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"folderphotocamera"] color:[NCBrandColor sharedInstance].brand];
|
|
|
+ else
|
|
|
+ cell.imageView.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"folder"] color:[NCBrandColor sharedInstance].brand];
|
|
|
+
|
|
|
cell.textLabel.text = metadata.fileNameView;
|
|
|
|
|
|
return cell;
|