timeout method

void timeout(
  1. String callMode,
  2. String userJid,
  3. String callType,
  4. String callStatus,
)

Implementation

void timeout(
    String callMode, String userJid, String callType, String callStatus) {
  // this.callStatus("Disconnected");
  // Get.back();
  // Navigator.pop(context);
  debugPrint("timeout");
  // MirrorflyUikit.instance.navigationManager.navigateBack(context: context);
  this.callMode(callMode);
  this.callType(callType);
  debugPrint(
      "#Mirrorfly Call timeout callMode : $callMode -- userJid : $userJid -- callType $callType -- callStatus $callStatus -- current route ${Get.currentRoute}");
  if (MirrorflyUikit.instance.navigationManager.getCurrentRoute() ==
      Constants.outGoingCallView) {
    debugPrint("#Mirrorfly Call navigating to Call Timeout");
    // Get.offNamed(Routes.callTimeOutView,
    //     arguments: {"callType": callType, "callMode": callMode, "userJid": users, "calleeName": calleeName.value});
    MirrorflyUikit.instance.navigationManager.navigatePushReplacement(
        context: context,
        pageToNavigate: CallTimeoutView(
            callType: callType,
            callMode: callMode,
            userJid: users,
            calleeName: calleeName.value),
        routeName: Constants.callTimeOutView);
  } else {
    var userJids = userJid.split(",");
    debugPrint("#Mirrorfly Call timeout userJids $userJids");
    for (var jid in userJids) {
      debugPrint("removeUser userJid $jid");
      removeUser(callMode, jid.toString().trim(), callType);
    }
  }
}