05/29 Fix shared items aren't displayed on user page 2

This commit is contained in:
2026-05-29 12:40:12 -04:00
parent fee82fa686
commit b11d897bf6
2 changed files with 5 additions and 10 deletions
+1 -6
View File
@@ -1864,7 +1864,7 @@ const Vault = (() => {
const shares = await res.json();
renderSharedIn(shares);
} catch (err) {
console.error("loadSharedIn:", err);
showToast("Could not load shared inbox: " + err.message, "error");
}
}
@@ -1931,11 +1931,6 @@ const Vault = (() => {
'<li class="vault-empty">No items have been shared with you.</li>';
return;
}
// Auto-switch to "Shared with me" tab when there are pending shares so the
// recipient doesn't miss them (the default active tab is "Shared by me").
if (shares.some((s) => !s.accepted)) {
document.querySelector('.tab-btn[data-tab="shared-in"]')?.click();
}
ul.innerHTML = shares
.map(
(s) => {