findAtSignsToShareLocationWith method

void findAtSignsToShareLocationWith()

Implementation

void findAtSignsToShareLocationWith() {
  atsignsToShareLocationWith = [];
  KeyStreamService().allLocationNotifications.forEach((notification) {
    if ((notification.locationNotificationModel!.atsignCreator ==
            atClient!.currentAtSign) &&
        (notification.locationNotificationModel!.isSharing) &&
        (notification.locationNotificationModel!.isAccepted) &&
        (!notification.locationNotificationModel!.isExited)) {
      atsignsToShareLocationWith.add(notification.locationNotificationModel);
    }
  });

  sendLocation();
}