Calling: Clear activeCall only for incoming prering/ringing calls
This commit is contained in:
parent
1d91f59368
commit
f431f15a5e
1 changed files with 6 additions and 2 deletions
|
@ -15,6 +15,7 @@ import { getIncomingCall } from '../selectors/calling';
|
||||||
import {
|
import {
|
||||||
ActiveCallType,
|
ActiveCallType,
|
||||||
CallMode,
|
CallMode,
|
||||||
|
CallState,
|
||||||
GroupCallRemoteParticipantType,
|
GroupCallRemoteParticipantType,
|
||||||
} from '../../types/Calling';
|
} from '../../types/Calling';
|
||||||
import { StateType } from '../reducer';
|
import { StateType } from '../reducer';
|
||||||
|
@ -89,8 +90,11 @@ const mapStateToActiveCallProp = (
|
||||||
|
|
||||||
switch (call.callMode) {
|
switch (call.callMode) {
|
||||||
case CallMode.Direct:
|
case CallMode.Direct:
|
||||||
// If the call is incoming, it's not an 'active' call and we shouldn't show a lobby.
|
if (
|
||||||
if (call.isIncoming) {
|
call.isIncoming &&
|
||||||
|
(call.callState === CallState.Prering ||
|
||||||
|
call.callState === CallState.Ringing)
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue