Add new test for non-sharing, fix non-sharing use case

This commit is contained in:
Max Berger
2026-03-26 21:20:02 +01:00
parent 78cf5f7fe3
commit bde188ff55
10 changed files with 100 additions and 31 deletions

View File

@@ -182,7 +182,10 @@ export function reload_sharing_list(user, password, collection, callback) {
let shares = (parsed["Content"] || []).map((/** @type {ShareData} */ data) => new Share(data));
callback(shares, null);
},
null, // on_not_found
function () {
// sharing is disabled on the server
callback([], null);
},
function (error) {
callback([], error);
},