feat: add share indicators for calendars and contacts, update JMAP capabilities #244

This commit is contained in:
Linus Rath
2026-05-02 23:29:21 +02:00
parent f970fd1822
commit 9777dd655c
5 changed files with 50 additions and 3 deletions
+10 -2
View File
@@ -3079,11 +3079,19 @@ export class JMAPClient implements IJMAPClient {
}
private contactUsing(): string[] {
return ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:contacts"];
const using = ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:contacts"];
if (this.hasCapability("urn:ietf:params:jmap:principals")) {
using.push("urn:ietf:params:jmap:principals:owner");
}
return using;
}
private calendarUsing(): string[] {
return ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:calendars"];
const using = ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:calendars"];
if (this.hasCapability("urn:ietf:params:jmap:principals")) {
using.push("urn:ietf:params:jmap:principals:owner");
}
return using;
}
private getCalendarCapableAccountIds(): string[] {