05/29 Update shared items displayed on Grantee items 3

This commit is contained in:
2026-05-29 14:05:58 -04:00
parent 6ea40b8084
commit b614b63ead
+4
View File
@@ -393,6 +393,10 @@ const Vault = (() => {
* Returns an array suitable for the shared_updates field of PUT /api/vault/<id>. * Returns an array suitable for the shared_updates field of PUT /api/vault/<id>.
*/ */
async function buildSharedUpdates(itemId, plainData, itemName) { async function buildSharedUpdates(itemId, plainData, itemName) {
// Ensure the owner's ECDH private key is loaded before attempting re-encryption.
// The session may not be ready yet if the user edits before loadSharedItemsForVault
// completes (async race on first load).
await ensureSharingSession();
if (!SharingSession.isReady()) return []; if (!SharingSession.isReady()) return [];
try { try {
const res = await apiFetch("/api/sharing"); const res = await apiFetch("/api/sharing");