pim-types: add lastModified.

master
Tom Hacohen 4 years ago
parent ffe60f8b28
commit 66331a4e2a

@ -14,6 +14,7 @@ export interface PimType {
itemUid?: string;
toIcal(): string;
clone(): PimType;
lastModified: ICAL.Time | undefined;
}
export function timezoneLoadFromName(timezone: string | null) {
@ -385,6 +386,10 @@ export class ContactType implements PimType {
return this.comp.getFirstPropertyValue("bday");
}
get lastModified() {
return this.comp.getFirstPropertyValue("rev");
}
get group() {
const kind = this.comp.getFirstPropertyValue("kind");
return ["group", "organization"].includes(kind);

Loading…
Cancel
Save