Skip to content

Commit

Permalink
all participants in consultation or waiting room now treated as in WR
Browse files Browse the repository at this point in the history
  • Loading branch information
shaed-parkar committed Nov 18, 2024
1 parent d9230d4 commit 36bf69d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
32 changes: 16 additions & 16 deletions VideoWeb/VideoWeb/ClientApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion VideoWeb/VideoWeb/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"ng-mocks": "^14.12.2",
"nswag": "^14.1.0",
"prettier": "^3.3.3",
"puppeteer": "^23.7.1",
"puppeteer": "^23.8.0",
"run-script-os": "^1.1.6",
"sass": "^1.77.8",
"typescript": ">=5.2.0 <5.4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ describe('ParticipantPanelModel', () => {
expect(model.isAvailable()).toBe(true);
});

it('returns isAvailable: false when participant is not quick link user and status is in consultation', () => {
it('returns isAvailable: true when participant is not quick link user and status is in consultation', () => {
participant.status = ParticipantStatus.InConsultation;
model = mapper.mapFromParticipantUserResponse(participant);
spyOnProperty(model, 'isQuickLinkUser').and.returnValue(false);
expect(model.isAvailable()).toBe(false);
expect(model.isAvailable()).toBe(true);
});

it('returns isAvailable: true when participant is quick link user and status is available', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export class ParticipantsPanelComponent implements OnInit, OnDestroy {
private processParticipantAndEndpointUpdates(participants: VHParticipant[], endpoints: VHEndpoint[]) {
this.totalParticipants = participants.length + endpoints.length;
this.totalParticipantsInWaitingRoom =
participants.filter(x => x.status === ParticipantStatus.Available).length +
participants.filter(x => x.status === ParticipantStatus.Available || x.status === ParticipantStatus.InConsultation).length +
endpoints.filter(x => x.status === EndpointStatus.InConsultation).length;

this.nonEndpointParticipants = this.mapper.mapFromVHParticipants(participants);
Expand Down

0 comments on commit 36bf69d

Please sign in to comment.