Skip to content

Commit b82b6d9

Browse files
committed
#MRN-774 group notification implemented
1 parent b51ed63 commit b82b6d9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/Helper/Calls/Utility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export const addHeadphonesConnectedListenerForCall = (shouldUpdateInitialValue =
235235
};
236236

237237
//Making OutGoing Call
238-
export const makeCalls = async (callType, userId) => {
238+
export const initiateMirroflyCall = async (callType, userId) => {
239239
let userList = [];
240240
if (!userId || preventMultipleClick) {
241241
return;

src/calls/screens/CallAgain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ImageBackground, StyleSheet, Text, View } from 'react-native';
33
import { GestureHandlerRootView, RectButton } from 'react-native-gesture-handler';
44
import { useDispatch, useSelector } from 'react-redux';
55
import { CALL_TYPE_AUDIO } from '../../Helper/Calls/Constant';
6-
import { makeCalls, resetCallModalActivity, showCallModalToast } from '../../Helper/Calls/Utility';
6+
import { initiateMirroflyCall, resetCallModalActivity, showCallModalToast } from '../../Helper/Calls/Utility';
77
import CallsBg from '../../assets/calls-bg.png';
88
import Avathar from '../../common/Avathar';
99
import { CloseIcon, PhoneIcon, PhoneVideoIcon } from '../../common/Icons';
@@ -32,7 +32,7 @@ const CallAgain = () => {
3232
const handleCallAgain = () => {
3333
if (callType && userId) {
3434
if (isNetworkConnected) {
35-
makeCalls(callType, [userId]);
35+
initiateMirroflyCall(callType, [userId]);
3636
} else {
3737
showCallModalToast('Please check your internet connection', 2500);
3838
}

src/components/ChatHeader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import { BackHandler, Keyboard, StyleSheet, Text, TextInput, View } from 'react-native';
44
import { openSettings } from 'react-native-permissions';
55
import { useDispatch, useSelector } from 'react-redux';
6-
import { isRoomExist, makeCalls } from '../Helper/Calls/Utility';
6+
import { isRoomExist, initiateMirroflyCall } from '../Helper/Calls/Utility';
77
import { RealmKeyValueStore } from '../SDK/SDK';
88
import AlertModal from '../common/AlertModal';
99
import IconButton from '../common/IconButton';
@@ -251,7 +251,7 @@ function ChatHeader({ chatUser }) {
251251
if ((result === 'granted' || result === 'limited') && bluetoothPermission === 'granted') {
252252
// Checking If Room exist when user granted permission
253253
if (!isRoomExist()) {
254-
makeCalls(callType, [userId]);
254+
initiateMirroflyCall(callType, [userId]);
255255
} else {
256256
setShowRoomExist(true);
257257
}

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
export { MirrorflyComponent } from '../App';
22
export { ChatScreen } from './Navigation/stackNavigation';
3-
export { CallComponent } from './calls/CallComponent';
3+
export { CallComponent as MirrorflyCallComponent } from './calls/CallComponent';
4+
export { initiateMirroflyCall } from './Helper/Calls/Utility';
45
export { setNotificationForegroundService } from './calls/notification/callNotifyHandler';
56
export {
67
mirrorflyInitialize,
78
mirrorflyNotificationHandler,
89
mirrorflyProfileUpdate,
910
mirrorflyRegister,
1011
setAppConfig,
11-
setupCallScreen
12+
setupCallScreen,
1213
} from './uikitMethods';
13-
export { SDK };
1414
import SDK from './SDK/SDK';
15-
15+
export { SDK };

0 commit comments

Comments
 (0)