Skip to content

Commit

Permalink
Add custom check for whether meeting has changed to in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ssciolla committed Dec 9, 2020
1 parent ae3c90c commit 1167d83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assets/src/changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export function compareEntities<T extends Base> (oldOnes: T[], newOnes: T[]): st
if (secondEntity) {
if (isMeeting(firstEntity) && isMeeting(secondEntity)) {
changeDetected = detectChanges<Meeting>(firstEntity, secondEntity, meetingPropsToWatch);
if (!changeDetected && firstEntity.status !== secondEntity.status && secondEntity.status === MeetingStatus.STARTED) {
changeDetected = 'The status indicates the meeting is now in progress.';
}
} else if (isQueueBase(firstEntity) && isQueueBase(secondEntity)) {
changeDetected = detectChanges<QueueBase>(firstEntity, secondEntity, queueBasePropsToWatch);
}
Expand Down

0 comments on commit 1167d83

Please sign in to comment.