MESSENGER-3588 icloud backup

This commit is contained in:
Frank Rotermund
2022-09-19 13:04:53 +02:00
parent 28200d5cb4
commit a32790470d
@@ -1878,9 +1878,9 @@ static NSString *contactsBookInfoFile = @"contactsV2";
if (error == nil)
{
[cipher writeToFile:[self dataFilePathForComponent:fileName] atomically:YES];
[[NSFileManager defaultManager] excludeItemFromBackupAt:[NSURL fileURLWithPath:fileName] error:&error];
[[NSFileManager defaultManager] excludeItemFromBackupAt:[NSURL fileURLWithPath:[self dataFilePathForComponent:fileName]] error:&error];
if (error) {
MXLogDebug(@"[MXKContactManager] Cannot exclude item from backup %@", error.localizedDescription);
MXLogDebug(@"[MXKContactManager] Cannot exclude item from backup %@ filename %@", error.localizedDescription, fileName);
}
}
else