|
@@ -4000,63 +4000,26 @@
|
|
|
type:AHKActionSheetButtonTypeEncrypted
|
|
|
handler:^(AHKActionSheet *as) {
|
|
|
|
|
|
- [app.endToEndInterface markEndToEndFolderEncrypted:_metadata];
|
|
|
- }];
|
|
|
- }
|
|
|
-
|
|
|
- if ([CCUtility isEndToEndEnabled:app.activeAccount]) {
|
|
|
-
|
|
|
- [actionSheet addButtonWithTitle:@"Delete mark as encrypted"
|
|
|
- image:[UIImage imageNamed:@"actionSheetCrypto"]
|
|
|
- backgroundColor:[UIColor whiteColor]
|
|
|
- height: 50.0
|
|
|
- type:AHKActionSheetButtonTypeEncrypted
|
|
|
- handler:^(AHKActionSheet *as) {
|
|
|
+ NSString *token = [[NCNetworkingSync sharedManager] lockEndToEndFolderEncrypted:app.activeUser userID:app.activeUserID password:app.activePassword url:self.serverUrl fileID:_metadata.fileID token:nil];
|
|
|
|
|
|
- [app.endToEndInterface deletemarkEndToEndFolderEncrypted:_metadata];
|
|
|
- }];
|
|
|
- }
|
|
|
-
|
|
|
- if ([CCUtility isEndToEndEnabled:app.activeAccount]) {
|
|
|
-
|
|
|
- [actionSheet addButtonWithTitle:@"Lock file"
|
|
|
- image:[UIImage imageNamed:@"actionSheetCrypto"]
|
|
|
- backgroundColor:[UIColor whiteColor]
|
|
|
- height: 50.0
|
|
|
- type:AHKActionSheetButtonTypeEncrypted
|
|
|
- handler:^(AHKActionSheet *as) {
|
|
|
-
|
|
|
- [app.endToEndInterface lockEndToEndFolderEncrypted:_metadata];
|
|
|
- }];
|
|
|
- }
|
|
|
-
|
|
|
- if ([CCUtility isEndToEndEnabled:app.activeAccount]) {
|
|
|
-
|
|
|
- [actionSheet addButtonWithTitle:@"Unlock file"
|
|
|
- image:[UIImage imageNamed:@"actionSheetCrypto"]
|
|
|
- backgroundColor:[UIColor whiteColor]
|
|
|
- height: 50.0
|
|
|
- type:AHKActionSheetButtonTypeEncrypted
|
|
|
- handler:^(AHKActionSheet *as) {
|
|
|
+ [[NCNetworkingSync sharedManager] markEndToEndFolderEncrypted:app.activeUser userID:app.activeUserID password:app.activePassword url:self.serverUrl fileID:_metadata.fileID];
|
|
|
|
|
|
- [app.endToEndInterface unlockEndToEndFolderEncrypted:_metadata];
|
|
|
+ [[NCNetworkingSync sharedManager] unlockEndToEndFolderEncrypted:app.activeUser userID:app.activeUserID password:app.activePassword url:self.serverUrl fileID:_metadata.fileID token:token];
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
if ([CCUtility isEndToEndEnabled:app.activeAccount]) {
|
|
|
|
|
|
- [actionSheet addButtonWithTitle:@"Get metadata file"
|
|
|
+ [actionSheet addButtonWithTitle:@"Delete mark as encrypted"
|
|
|
image:[UIImage imageNamed:@"actionSheetCrypto"]
|
|
|
backgroundColor:[UIColor whiteColor]
|
|
|
height: 50.0
|
|
|
type:AHKActionSheetButtonTypeEncrypted
|
|
|
handler:^(AHKActionSheet *as) {
|
|
|
|
|
|
- [app.endToEndInterface getEndToEndMetadata:_metadata];
|
|
|
+ [app.endToEndInterface deletemarkEndToEndFolderEncrypted:_metadata];
|
|
|
}];
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
#endif
|
|
|
|
|
|
if (!([_metadata.fileName isEqualToString:autoUploadFileName] == YES && [serverUrl isEqualToString:autoUploadDirectory] == YES)) {
|