remoteEngaged method

Future<void> remoteEngaged(
  1. String userJid,
  2. String callMode,
  3. String callType
)

Implementation

Future<void> remoteEngaged(
    String userJid, String callMode, String callType) async {
  var data = await getProfileDetails(userJid);
  toToast(data.getName() + Constants.remoteEngagedToast);

  debugPrint("***call list length ${callList.length}");
//The below condition (<= 2) -> (<2) is changed for Group call, to maintain the call to continue if there is a 2 users in call
  if (callList.length < 2) {
    disconnectOutgoingCall();
  } else {
    removeUser(callMode, userJid, callType);
  }
}