Media viewer details panel, Upload FAB size setting, PDF zoom/viewport fixes, avatar menu account switcher; bump to 1.0.2+5
Build App Bundle / build (push) Successful in 6m2s
Build App Bundle / build (push) Successful in 6m2s
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -168,9 +168,9 @@ class ItemOperations {
|
||||
(c) => choices[c.item.id] == ConflictChoice.keepBoth,
|
||||
);
|
||||
final existingNames = needsKeepBoth
|
||||
? (await files.fetchFolderListing(destFolderPath))
|
||||
.map((i) => i.name)
|
||||
.toSet()
|
||||
? (await files.fetchFolderListing(
|
||||
destFolderPath,
|
||||
)).map((i) => i.name).toSet()
|
||||
: <String>{};
|
||||
|
||||
var succeeded = 0;
|
||||
@@ -303,6 +303,20 @@ class ItemOperations {
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> updateSharePermissions(
|
||||
NextcloudShare share,
|
||||
int permissions,
|
||||
) async {
|
||||
final service = session.service;
|
||||
if (service == null) return false;
|
||||
try {
|
||||
return await service.updateSharePermissions(share.id, permissions);
|
||||
} catch (e) {
|
||||
debugPrint('[ItemOperations] updateSharePermissions failed: $e');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes a share (from the file-details/Share sheet, not the Shares
|
||||
/// tab itself - see `SharesController.deleteShare` for that one, which
|
||||
/// additionally patches the tab's own list).
|
||||
|
||||
Reference in New Issue
Block a user