diff --git a/src/components/Editor/Invitees/InviteesList.vue b/src/components/Editor/Invitees/InviteesList.vue
index 03904479d2..8c20dd7840 100644
--- a/src/components/Editor/Invitees/InviteesList.vue
+++ b/src/components/Editor/Invitees/InviteesList.vue
@@ -29,7 +29,7 @@
- {
+ return attendee.attendeeProperty.userType === 'GROUP'
+ })
+ },
+ inviteesWithoutOrganizerAndGroupMembership() {
if (!this.calendarObjectInstance.organizer) {
return this.invitees
}
return this.invitees
- .filter(attendee => attendee.uri !== this.calendarObjectInstance.organizer.uri)
+ .filter(attendee => {
+ // Filter attendees which are part of an invited group
+ var isMemberOfGroup = this.groups.some(function(group) {
+ return attendee.member.includes(group.uri) &&
+ attendee.attendeeProperty.userType === 'INDIVIDUAL'
+ })
+
+ return attendee.uri !== this.calendarObjectInstance.organizer.uri &&
+ !isMemberOfGroup
+ })
},
hasOrganizer() {
return this.calendarObjectInstance.organizer !== null