TP-71465 | Feature flag added for call Info

This commit is contained in:
yashmantri
2024-08-14 13:19:35 +05:30
parent 831379d4ed
commit e836f86d97
3 changed files with 10 additions and 5 deletions

View File

@@ -134,8 +134,8 @@ def reactNativeArchitectures() {
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}
def VERSION_CODE = 183
def VERSION_NAME = "2.12.7"
def VERSION_CODE = 184
def VERSION_NAME = "2.12.8"
android {
ndkVersion rootProject.ext.ndkVersion

View File

@@ -1,7 +1,7 @@
{
"name": "AV_APP",
"version": "2.12.7",
"buildNumber": "183",
"version": "2.12.8",
"buildNumber": "184",
"private": true,
"scripts": {
"android:dev": "yarn move:dev && react-native run-android",

View File

@@ -8,11 +8,16 @@ import { GLOBAL } from '@constants/Global';
const Layout: React.FC<PropsWithChildren> = (props) => {
const isCallActive = useAppSelector((state: RootState) => state?.activeCall?.callActive);
const isCallRecordingCosmosExotelEnabled = useAppSelector(
(state) => state?.user?.featureFlags?.isCallRecordingCosmosExotelEnabled
);
return (
<>
<Offline />
{isCallActive && !GLOBAL.IS_IMPERSONATED ? <CallInfo /> : null}
{isCallActive && !GLOBAL.IS_IMPERSONATED && isCallRecordingCosmosExotelEnabled ? (
<CallInfo />
) : null}
{props.children}
</>
);