Fix possible threading issue causing issues in group calls.

This commit is contained in:
Alex Hart
2023-08-22 15:15:29 -03:00
parent 38940e0111
commit 1fbcd9b362

View File

@@ -162,7 +162,7 @@ public class WebRtcCallViewModel extends ViewModel {
return new InCallStatus.JoinedCallLinkUsers((int) participantsState.getParticipantCount().orElse(0));
}
}
).distinctUntilChanged();
).distinctUntilChanged().observeOn(AndroidSchedulers.mainThread());
}
public Observable<CallParticipantsState> getCallParticipantsState() {
@@ -190,7 +190,7 @@ public class WebRtcCallViewModel extends ViewModel {
}
public Observable<Boolean> shouldShowSpeakerHint() {
return shouldShowSpeakerHint;
return shouldShowSpeakerHint.observeOn(AndroidSchedulers.mainThread());
}
public WebRtcAudioOutput getCurrentAudioOutput() {