Calling: Never show lobby for incoming call

This commit is contained in:
Scott Nonnenberg 2021-08-10 10:15:35 -07:00 committed by GitHub
parent 8703b0e020
commit f985d55d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,11 @@ const mapStateToActiveCallProp = (
switch (call.callMode) {
case CallMode.Direct:
// If the call is incoming, it's not an 'active' call and we shouldn't show a lobby.
if (call.isIncoming) {
return;
}
return {
...baseResult,
callEndedReason: call.callEndedReason,