pim-types: add a function to get group membership.

master
Tom Hacohen 4 years ago
parent d530204584
commit 78e91abcb4

@ -389,4 +389,8 @@ export class ContactType implements PimType {
const kind = this.comp.getFirstPropertyValue("kind"); const kind = this.comp.getFirstPropertyValue("kind");
return ["group", "organization"].includes(kind); return ["group", "organization"].includes(kind);
} }
get members() {
return this.comp.getAllProperties("member").map((prop) => prop.getFirstValue<string>().replace("urn:uuid:", ""));
}
} }

Loading…
Cancel
Save