diff --git a/ride/call/driver/create_call_session.php b/ride/call/driver/create_call_session.php index a3d4a7f..9d392c6 100644 --- a/ride/call/driver/create_call_session.php +++ b/ride/call/driver/create_call_session.php @@ -94,8 +94,9 @@ try { $passengerTokenRow = $stmtToken->fetch(); if ($passengerTokenRow && !empty($passengerTokenRow['token'])) { + $decryptedToken = $encryptionHelper->decryptData($passengerTokenRow['token']); sendFcmNotification( - $passengerTokenRow['token'], + $decryptedToken, 'Incoming Call', 'Incoming WebRTC voice call', [ diff --git a/ride/call/passenger/create_call_session.php b/ride/call/passenger/create_call_session.php index a75b529..95b64d9 100644 --- a/ride/call/passenger/create_call_session.php +++ b/ride/call/passenger/create_call_session.php @@ -99,8 +99,9 @@ try { $driverTokenRow = $stmtToken->fetch(); if ($driverTokenRow && !empty($driverTokenRow['token'])) { + $decryptedToken = $encryptionHelper->decryptData($driverTokenRow['token']); sendFcmNotification( - $driverTokenRow['token'], + $decryptedToken, 'Incoming Call', 'Incoming WebRTC voice call', [