fix: enhance sharing functionality by renaming state
This commit is contained in:
@@ -3314,6 +3314,9 @@ export class JMAPClient implements IJMAPClient {
|
||||
const err = result.notUpdated[calendarId];
|
||||
throw new Error(err.description || "Failed to update calendar share");
|
||||
}
|
||||
if (!result?.updated || !(calendarId in result.updated)) {
|
||||
throw new Error("Server did not confirm the share update");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3339,6 +3342,9 @@ export class JMAPClient implements IJMAPClient {
|
||||
const err = result.notUpdated[addressBookId];
|
||||
throw new Error(err.description || "Failed to update address book share");
|
||||
}
|
||||
if (!result?.updated || !(addressBookId in result.updated)) {
|
||||
throw new Error("Server did not confirm the share update");
|
||||
}
|
||||
}
|
||||
|
||||
private async fetchPaginatedContacts(
|
||||
|
||||
Reference in New Issue
Block a user