You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need a way to rollback changes currently in the pending queue. #62
do {
// Make sure to enqueue both the image and discussion for upload without an intervening sync -- they are in the same file group, and this will enable other clients to download them together.
try SyncServer.session.uploadImmutable(localFile: image.url!, withAttributes: imageAttr)
// Using uploadCopy for discussions in case the discussion gets updated locally before we complete this sync operation. i.e., discussions are mutable.
try SyncServer.session.uploadCopy(localFile: discussion.url!, withAttributes: discussionAttr)
try SyncServer.session.sync(sharingGroupUUID: image.sharingGroupUUID!)
} catch (let error) {
Log.error("An error occurred: \(error)")
}
But only the first upload works. It would be useful to roll back the other.
Activity
crspybits commentedon Nov 23, 2018
This is currently needed in line 161 of the SharedImages SyncController.swift