From f6c3dabc577f37225c0bbb1ab0eafc76290c8156 Mon Sep 17 00:00:00 2001 From: Christopher Poile Date: Wed, 31 Aug 2022 15:50:25 -0400 Subject: [PATCH] MM-46685 MM-45753 - Fix voice activity indicator and Android speakerphone (#6606) * voice activity indicator fix * fix android speakerphone --- android/app/src/main/AndroidManifest.xml | 1 + app/products/calls/screens/call_screen/call_screen.tsx | 4 ++-- ios/Podfile.lock | 4 ++-- package-lock.json | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 8859f175a4..18f59f6798 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -9,6 +9,7 @@ + { - if (data.channelId === currentCall?.channelId && speakers.hasOwnProperty(data.userId) && speakers[data.userId]) { + if (data.channelId === currentCall?.channelId && speakers.hasOwnProperty(data.userId)) { setSpeakers((prev) => { const next = {...prev}; delete next[data.userId]; @@ -292,7 +292,7 @@ const CallScreen = ({componentId, currentCall, participantsDict, teammateNameDis onVoiceOn.remove(); onVoiceOff.remove(); }; - }, []); + }, [speakers, currentCall?.channelId]); const leaveCallHandler = useCallback(() => { popTopScreen(); diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 706b0619dd..1ee4e488e1 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -438,7 +438,7 @@ PODS: - React - ReactNativeExceptionHandler (2.10.10): - React-Core - - ReactNativeIncallManager (3.3.0): + - ReactNativeIncallManager (4.0.0): - React-Core - ReactNativeKeyboardTrackingView (5.7.0): - React @@ -923,7 +923,7 @@ SPEC CHECKSUMS: ReactCommon: af7636436b382db7cde4583bbd642f0978e6e3ed ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab ReactNativeExceptionHandler: b11ff67c78802b2f62eed0e10e75cb1ef7947c60 - ReactNativeIncallManager: 642c22630caadff0a0619413aff4a9da08d63df9 + ReactNativeIncallManager: b169b57d3064d8f62478f8fc3c485da6c75045d1 ReactNativeKeyboardTrackingView: 02137fac3b2ebd330d74fa54ead48b14750a2306 ReactNativeNavigation: 3b09d0b7a64326dbcea7e64231287c766b18adf0 RNCClipboard: 41d8d918092ae8e676f18adada19104fa3e68495 diff --git a/package-lock.json b/package-lock.json index 2001000d8e..96e8574e86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20585,8 +20585,8 @@ } }, "node_modules/react-native-incall-manager": { - "version": "3.3.0", - "resolved": "git+ssh://git@github.com/cpoile/react-native-incall-manager.git#8c55b9dac0a2ab25d651fb54b504d384f9989b36", + "version": "4.0.0", + "resolved": "git+ssh://git@github.com/cpoile/react-native-incall-manager.git#6b66ae7bab194c82573c7b3891b0ac3af71d424e", "license": "ISC", "peerDependencies": { "react-native": ">=0.40.0" @@ -41214,7 +41214,7 @@ "requires": {} }, "react-native-incall-manager": { - "version": "git+ssh://git@github.com/cpoile/react-native-incall-manager.git#8c55b9dac0a2ab25d651fb54b504d384f9989b36", + "version": "git+ssh://git@github.com/cpoile/react-native-incall-manager.git#6b66ae7bab194c82573c7b3891b0ac3af71d424e", "from": "react-native-incall-manager@github:cpoile/react-native-incall-manager", "requires": {} },