Merge pull request #5691 from tsiegleauq/fix-remove-all-speakers

Fix "remove all speaker" button
This commit is contained in:
Sean 2020-11-10 12:08:30 +01:00 committed by GitHub
commit dd3dbea482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,12 +151,11 @@ export class ListOfSpeakersContentComponent extends BaseViewComponentDirective i
}
private isListOfSpeakersEmpty(): void {
if (this.waitingSpeakers && this.waitingSpeakers.length) {
this.isListOfSpeakersEmptyEvent.emit(false);
} else if (this.finishedSpeakers && this.finishedSpeakers.length) {
if (this.waitingSpeakers?.length || this.finishedSpeakers?.length) {
this.isListOfSpeakersEmptyEvent.emit(false);
} else {
return this.isListOfSpeakersEmptyEvent.emit(!this.activeSpeaker);
}
return this.isListOfSpeakersEmptyEvent.emit(!this.activeSpeaker);
}
private updateCanReaddLastSpeaker(): void {