no message

This commit is contained in:
Giuseppe Nucifora 2016-02-15 17:06:45 +01:00
parent d59d446285
commit 9bd70ac9e0

View File

@ -145,7 +145,12 @@ static bool isFirstAccess = YES;
@finally { @finally {
if ([_fileManager checkPath:className]) { if ([_fileManager checkPath:className]) {
return [NSKeyedUnarchiver unarchiveObjectWithData:[_fileManager fetchFileDataWithPath:className]];
NSError *error = nil;
NSData *data = [RNCryptor decryptData:[_fileManager fetchFileDataWithPath:className] password:[[PNObjectConfig sharedInstance] encrypKey] error:&error];
return [NSKeyedUnarchiver unarchiveObjectWithData:data];
} }
else else
return nil; return nil;