Skip to content

Commit

Permalink
Merge pull request #389 from haiwen/backupPhotoBugFix
Browse files Browse the repository at this point in the history
backup Photo bug fix.
  • Loading branch information
freeplant authored Aug 22, 2024
2 parents a197ed4 + a48dca1 commit ed40944
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions seafile/SeafAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
if (SeafGlobal.sharedObject.connection.accountIdentifier) {
[[SeafDataTaskManager.sharedObject accountQueueForConnection:SeafGlobal.sharedObject.connection].uploadQueue clearTasks];
}
[self photosDidChange:[NSNotification notificationWithName:@"photosDidChange" object:nil userInfo:@{@"force" : @(YES)}]];
[self startBackgroundTask];
for (SeafConnection *conn in SeafGlobal.sharedObject.conns) {
conn.inAutoSync = false;
[conn.photoBackup resetAll];
[SeafDataTaskManager.sharedObject cancelAutoSyncTasks:conn];
[conn clearUploadCache];
}
// [self photosDidChange:[NSNotification notificationWithName:@"photosDidChange" object:nil userInfo:@{@"force" : @(YES)}]];
// [self startBackgroundTask];
} else {
//not work in iOS 13, and while call in app become active next time
[self startBackgroundTask];
Expand Down

0 comments on commit ed40944

Please sign in to comment.