diff --git a/lib/core/utils/push_notification_handler.dart b/lib/core/utils/push_notification_handler.dart index 57efe7c6..7c8c402e 100644 --- a/lib/core/utils/push_notification_handler.dart +++ b/lib/core/utils/push_notification_handler.dart @@ -405,7 +405,7 @@ class PushNotificationHandler { ) async { log('🎈 example: onDidAcceptIncomingCall $uuid - $callerId'); - String zoomSessionID = callerId.split("*")[0]; + String zoomSessionID = callerId.split("_").sublist(0, callerId.split("_").length - 1).join("_"); await voIPKit.acceptIncomingCall(callerState: CallStateType.calling); await voIPKit.callConnected(); diff --git a/lib/features/book_appointments/book_appointments_repo.dart b/lib/features/book_appointments/book_appointments_repo.dart index c4bd08d0..3707ab6f 100644 --- a/lib/features/book_appointments/book_appointments_repo.dart +++ b/lib/features/book_appointments/book_appointments_repo.dart @@ -762,6 +762,8 @@ class BookAppointmentsRepoImp implements BookAppointmentsRepo { "IsVirtual": false, "DeviceType": Platform.isIOS ? 'iOS' : 'Android', "DeviceToken": await Utils.getStringFromPrefs(CacheConst.pushToken), + "VoipToken": await Utils.getStringFromPrefs(CacheConst.voipToken), + "IsVoip": Platform.isIOS ? true : false, "BookedBy": 102, "VisitType": 1, "VisitFor": 1, diff --git a/lib/features/my_appointments/my_appointments_repo.dart b/lib/features/my_appointments/my_appointments_repo.dart index 313fe56a..46d24eb7 100644 --- a/lib/features/my_appointments/my_appointments_repo.dart +++ b/lib/features/my_appointments/my_appointments_repo.dart @@ -622,7 +622,7 @@ class MyAppointmentsRepoImp implements MyAppointmentsRepo { "AcceptedBy": patientAppointmentHistoryResponseModel.doctorID, "IsFlutter": true, "DeviceToken": await Utils.getStringFromPrefs(CacheConst.pushToken), - "VoipToken": "", // TODO: Add VoIP Token functionality + "VoipToken": await Utils.getStringFromPrefs(CacheConst.voipToken), "IsVoip": Platform.isIOS ? true : false }; diff --git a/lib/presentation/medical_report/medical_reports_page.dart b/lib/presentation/medical_report/medical_reports_page.dart index 33f9e6e3..8fdae4df 100644 --- a/lib/presentation/medical_report/medical_reports_page.dart +++ b/lib/presentation/medical_report/medical_reports_page.dart @@ -159,7 +159,8 @@ class _MedicalReportsPageState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ CustomButton( - text: "${medicalFileVM.patientMedicalReportsViewList[index].medicalReportsList!.length} Reports Available", + text: + "${medicalFileVM.patientMedicalReportsViewList[index].medicalReportsList!.length} ${medicalFileVM.patientMedicalReportsViewList[index].medicalReportsList!.length > 1 ? 'Reports' : 'Report'}", onPressed: () {}, backgroundColor: AppColors.greyColor, borderColor: AppColors.greyColor,