(js) Previous/next slot: Ignore non-participants

This commit is contained in:
Francis Lachapelle
2019-02-20 14:58:40 -05:00
parent d16d4593ba
commit 5edffce691

View File

@@ -631,9 +631,11 @@
_this.currentEntries = _.flatMap(_this.component.organizer.freebusy[startDay]);
for (i = 0; i < _this.component.attendees.length; i++) {
attendee = _this.component.attendees[i];
attendeeEntries = _.flatMap(attendee.freebusy[startDay]);
for (j = 0; j < _this.currentEntries.length; j++) {
_this.currentEntries[j] += attendeeEntries[j];
if (attendee.role !== Attendees.ROLES.NON_PARTICIPANT) {
attendeeEntries = _.flatMap(attendee.freebusy[startDay]);
for (j = 0; j < _this.currentEntries.length; j++) {
_this.currentEntries[j] += attendeeEntries[j];
}
}
}
});