|
@@ -225,7 +225,7 @@
|
|
|
[appDelegate plusButtonVisibile:true];
|
|
|
|
|
|
// Search Bar
|
|
|
- if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount depth:NO]) {
|
|
|
+ if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount]) {
|
|
|
[self searchEnabled:NO];
|
|
|
} else {
|
|
|
[self searchEnabled:YES];
|
|
@@ -2110,7 +2110,7 @@
|
|
|
NSString *fileName = [arguments objectAtIndex:1];
|
|
|
|
|
|
// E2EE
|
|
|
- if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount depth:NO]) {
|
|
|
+ if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount]) {
|
|
|
|
|
|
// verify if exists the new fileName
|
|
|
if ([[NCManageDatabase sharedInstance] getE2eEncryptionWithPredicate:[NSPredicate predicateWithFormat:@"account = %@ AND serverUrl = %@ AND fileName = %@", appDelegate.activeAccount, self.serverUrl, fileName]]) {
|
|
@@ -2305,7 +2305,7 @@
|
|
|
[_queueSelector removeAllObjects];
|
|
|
|
|
|
// E2EE DENIED
|
|
|
- if ([CCUtility isFolderEncrypted:serverUrlTo account:appDelegate.activeAccount depth:NO]) {
|
|
|
+ if ([CCUtility isFolderEncrypted:serverUrlTo account:appDelegate.activeAccount]) {
|
|
|
|
|
|
[appDelegate messageNotification:@"_move_" description:@"Not possible move files to encrypted directory" visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeInfo errorCode:0];
|
|
|
return;
|
|
@@ -3405,7 +3405,7 @@
|
|
|
}];
|
|
|
|
|
|
// E2EE
|
|
|
- if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount depth:NO]) {
|
|
|
+ if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount]) {
|
|
|
appDelegate.reSelectMenu = [[REMenu alloc] initWithItems:@[appDelegate.deleteItem,appDelegate.downloadItem, appDelegate.saveItem]];
|
|
|
} else {
|
|
|
appDelegate.reSelectMenu = [[REMenu alloc] initWithItems:@[appDelegate.deleteItem,appDelegate.moveItem, appDelegate.downloadItem, appDelegate.saveItem]];
|
|
@@ -3918,7 +3918,7 @@
|
|
|
return NO;
|
|
|
|
|
|
// E2EE
|
|
|
- if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount depth:NO] && [CCUtility isEndToEndEnabled:appDelegate.activeAccount] == NO)
|
|
|
+ if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount] && [CCUtility isEndToEndEnabled:appDelegate.activeAccount] == NO)
|
|
|
return NO;
|
|
|
|
|
|
return YES;
|
|
@@ -4045,7 +4045,7 @@
|
|
|
|
|
|
BOOL lockDirectory = NO;
|
|
|
NSString *dirServerUrl = [CCUtility stringAppendServerUrl:serverUrl addFileName:_metadata.fileName];
|
|
|
- BOOL isFolderEncrypted = [CCUtility isFolderEncrypted:[NSString stringWithFormat:@"%@/%@", self.serverUrl, _metadata.fileName] account:appDelegate.activeAccount depth:NO];
|
|
|
+ BOOL isFolderEncrypted = [CCUtility isFolderEncrypted:[NSString stringWithFormat:@"%@/%@", self.serverUrl, _metadata.fileName] account:appDelegate.activeAccount];
|
|
|
|
|
|
// Directory bloccata ?
|
|
|
tableDirectory *directory = [[NCManageDatabase sharedInstance] getTableDirectoryWithPredicate:[NSPredicate predicateWithFormat:@"account = %@ AND serverUrl = %@", appDelegate.activeAccount, dirServerUrl]];
|
|
@@ -4238,7 +4238,7 @@
|
|
|
if (!_metadata.directory) {
|
|
|
|
|
|
UIImage *iconHeader;
|
|
|
- BOOL isFolderEncrypted = [CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount depth:NO];
|
|
|
+ BOOL isFolderEncrypted = [CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount];
|
|
|
|
|
|
// assegnamo l'immagine anteprima se esiste, altrimenti metti quella standars
|
|
|
if ([[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"%@/%@.ico", appDelegate.directoryUser, _metadata.fileID]])
|
|
@@ -4402,7 +4402,7 @@
|
|
|
_directoryOrder = [CCUtility getOrderSettings];
|
|
|
|
|
|
// Remove optimization for encrypted directory
|
|
|
- if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount depth:NO])
|
|
|
+ if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount])
|
|
|
_dateReadDataSource = nil;
|
|
|
|
|
|
// current directoryID
|
|
@@ -5203,7 +5203,7 @@
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount depth:NO] && ![CCUtility isEndToEndEnabled:appDelegate.activeAccount]) {
|
|
|
+ if ([CCUtility isFolderEncrypted:self.serverUrl account:appDelegate.activeAccount] && ![CCUtility isEndToEndEnabled:appDelegate.activeAccount]) {
|
|
|
|
|
|
[appDelegate messageNotification:@"_info_" description:@"_e2e_goto_settings_for_enable_" visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeInfo errorCode:0];
|
|
|
|