mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-27 17:12:43 +00:00
(js) Previous/next slot: Ignore non-participants
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user