Prevent outbound group ring if the feature flag is disabled
This commit is contained in:
parent
c6278aa173
commit
bae84b6b67
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,7 @@ import {
|
||||||
} from '../../types/Calling';
|
} from '../../types/Calling';
|
||||||
import { callingTones } from '../../util/callingTones';
|
import { callingTones } from '../../util/callingTones';
|
||||||
import { requestCameraPermissions } from '../../util/callingPermissions';
|
import { requestCameraPermissions } from '../../util/callingPermissions';
|
||||||
|
import { isGroupCallOutboundRingEnabled } from '../../util/isGroupCallOutboundRingEnabled';
|
||||||
import { sleep } from '../../util/sleep';
|
import { sleep } from '../../util/sleep';
|
||||||
import { LatestQueue } from '../../util/LatestQueue';
|
import { LatestQueue } from '../../util/LatestQueue';
|
||||||
import type { ConversationChangedActionType } from './conversations';
|
import type { ConversationChangedActionType } from './conversations';
|
||||||
|
@ -1077,7 +1078,7 @@ function startCall(
|
||||||
|
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const { activeCallState } = state.calling;
|
const { activeCallState } = state.calling;
|
||||||
if (activeCallState?.outgoingRing) {
|
if (isGroupCallOutboundRingEnabled() && activeCallState?.outgoingRing) {
|
||||||
const conversation = getOwn(
|
const conversation = getOwn(
|
||||||
state.conversations.conversationLookup,
|
state.conversations.conversationLookup,
|
||||||
activeCallState.conversationId
|
activeCallState.conversationId
|
||||||
|
@ -1253,6 +1254,7 @@ export function reducer(
|
||||||
...ringState,
|
...ringState,
|
||||||
};
|
};
|
||||||
outgoingRing =
|
outgoingRing =
|
||||||
|
isGroupCallOutboundRingEnabled() &&
|
||||||
!ringState.ringId &&
|
!ringState.ringId &&
|
||||||
!call.peekInfo.uuids.length &&
|
!call.peekInfo.uuids.length &&
|
||||||
!call.remoteParticipants.length &&
|
!call.remoteParticipants.length &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue