From a7889a0287cd090189a45af0abafd35a6bb4a247 Mon Sep 17 00:00:00 2001 From: cyberta Date: Mon, 11 Nov 2019 15:29:57 +0100 Subject: [PATCH] allow addition of group members' location that haven't sent their location yet while watching the map view --- src/org/thoughtcrime/securesms/map/DataCollector.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/org/thoughtcrime/securesms/map/DataCollector.java b/src/org/thoughtcrime/securesms/map/DataCollector.java index d80e7e6af..5aac48899 100644 --- a/src/org/thoughtcrime/securesms/map/DataCollector.java +++ b/src/org/thoughtcrime/securesms/map/DataCollector.java @@ -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 sortedPointFeatures = featureCollections.get(contactMapMetadata.getMarkerFeatureCollection()); if (sortedPointFeatures != null && sortedPointFeatures.size() == count) {