05/29 Update shared items displayed on Grantee items 3
This commit is contained in:
@@ -393,6 +393,10 @@ const Vault = (() => {
|
||||
* Returns an array suitable for the shared_updates field of PUT /api/vault/<id>.
|
||||
*/
|
||||
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 [];
|
||||
try {
|
||||
const res = await apiFetch("/api/sharing");
|
||||
|
||||
Reference in New Issue
Block a user