|
|
|
|
@ -377,7 +377,10 @@ class AppProvider extends ChangeNotifier {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isQueuePatients.isNotEmpty) {
|
|
|
|
|
isCallingInProgress = true;
|
|
|
|
|
|
|
|
|
|
log("i am here on line 375");
|
|
|
|
|
log("isQueuePatients.length 1: ${isQueuePatients.length}");
|
|
|
|
|
// for (int i = 0; i < length; i++) {
|
|
|
|
|
await Future.delayed(Duration(seconds: patientCallConfigurations.concurrentCallDelaySec)).whenComplete(() async {
|
|
|
|
|
PatientTicketModel temp = PatientTicketModel();
|
|
|
|
|
@ -393,6 +396,8 @@ class AppProvider extends ChangeNotifier {
|
|
|
|
|
patientTickets.add(temp);
|
|
|
|
|
}
|
|
|
|
|
notifyListeners();
|
|
|
|
|
log("isQueuePatients.length 2: ${isQueuePatients.length}");
|
|
|
|
|
|
|
|
|
|
if (isQueuePatients.isNotEmpty) {
|
|
|
|
|
await voiceCallPatientTicket(patientTickets.first, "listenAudioPlayerEvents");
|
|
|
|
|
updatePatientTicket(patientTickets.first);
|
|
|
|
|
|