Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIH-11274 apply host microphone preferences after joining a hearing in session #2367

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ export abstract class HearingControlsBaseComponent implements OnInit, OnDestroy
this.isSpotlighted = loggedInParticipant.pexipInfo?.isSpotlighted;
});

this.conferenceStore
.select(ConferenceSelectors.getPexipConference)
.pipe(
takeUntil(this.destroyedSubject),
filter(x => !!x && x.started)
)
.subscribe(() => {
this.handleHearingCountdownComplete(this.conferenceId);
});

this.conferenceStore
.select(ConferenceSelectors.getParticipants)
.pipe(takeUntil(this.destroyedSubject))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class NotificationEffects {
]),
filter(
([action, activeConference, loggedInParticipant]) =>
action.conferenceId === activeConference.id && loggedInParticipant.role === Role.JudicialOfficeHolder
action.conferenceId === activeConference?.id && loggedInParticipant?.role === Role.JudicialOfficeHolder
),
tap(([action]) => {
if (action.status === ConferenceStatus.InSession) {
Expand All @@ -48,9 +48,9 @@ export class NotificationEffects {
]),
filter(
([action, activeConference, loggedInParticipant]) =>
action.conferenceId === activeConference.id &&
loggedInParticipant.hearingRole !== HearingRole.WITNESS &&
(loggedInParticipant.role === Role.Individual || loggedInParticipant.role === Role.Representative)
action.conferenceId === activeConference?.id &&
loggedInParticipant?.hearingRole !== HearingRole.WITNESS &&
(loggedInParticipant?.role === Role.Individual || loggedInParticipant?.role === Role.Representative)
),
tap(([action, activeConference, loggedInParticipant]) => {
let hasWitnessLink = false;
Expand Down