removePerson method

Future removePerson(
  1. LocationNotificationModel locationNotificationModel
)

Removes a person from the location sharing

Implementation

Future removePerson(
    LocationNotificationModel locationNotificationModel) async {
  var result;
  if (locationNotificationModel.atsignCreator ==
      AtLocationNotificationListener().currentAtSign) {
    locationNotificationModel.isAccepted = false;
    locationNotificationModel.isExited = true;
    result =
        await updateWithShareLocationAcknowledge(locationNotificationModel);
  } else {
    result =
        await shareLocationAcknowledgment(locationNotificationModel, false);
  }
  return result;
}