Prevent outbound group ring if the feature flag is disabled
This commit is contained in:
@@ -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 &&
|
||||||
|
Reference in New Issue
Block a user