mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fix bug Unsharing in maintenance mode removes the file
This commit is contained in:
parent
5300d96d01
commit
badd90ef9d
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ public class UnshareOperation extends SyncOperation {
|
||||||
getStorageManager().saveFile(file);
|
getStorageManager().saveFile(file);
|
||||||
getStorageManager().removeShare(share);
|
getStorageManager().removeShare(share);
|
||||||
|
|
||||||
} else if (result.getCode() != ResultCode.MAINTENANCE_MODE && !existsFile(client, file.getRemotePath())) {
|
} else if (!existsFile(client, file.getRemotePath()) && result.getCode() != ResultCode.MAINTENANCE_MODE) {
|
||||||
// unshare failed because file was deleted before
|
// unshare failed because file was deleted before
|
||||||
getStorageManager().removeFile(file, true, true);
|
getStorageManager().removeFile(file, true, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue