allow addition of group members' location that haven't sent their location yet while watching the map view

This commit is contained in:
cyberta
2019-11-11 15:29:57 +01:00
parent 6b4f90c52f
commit a7889a0287
@@ -61,15 +61,12 @@ public class DataCollector {
long startTimestamp,
long endTimestamp) {
DcArray locations = dcContext.getLocations(chatId, contactId, startTimestamp, endTimestamp);
int count = locations.getCnt();
if (count == 0) {
return;
}
MapSource contactMapMetadata = contactMapSources.get(contactId);
if (contactMapMetadata == null) {
contactMapMetadata = addContactMapSource(contactMapSources, contactId);
}
int count = locations.getCnt();
LinkedList<Feature> sortedPointFeatures = featureCollections.get(contactMapMetadata.getMarkerFeatureCollection());
if (sortedPointFeatures != null && sortedPointFeatures.size() == count) {