remoteBusy method

Future<void> remoteBusy(
  1. String callMode,
  2. String userJid,
  3. String callType,
  4. String callAction,
)

Implementation

Future<void> remoteBusy(String callMode, String userJid, String callType,
    String callAction) async {
  // declineCall();
  if (callList.length > 2) {
    var data = await getProfileDetails(userJid);
    toToast("${data.getName()} is Busy");
  } else {
    toToast("User is Busy");
  }

  this.callMode(callMode);
  this.callType(callType);
  debugPrint("onCallAction CallList Length ${callList.length}");
  if (callList.length < 2) {
    disconnectOutgoingCall();
  } else {
    removeUser(callMode, userJid, callType);
  }
}