From 325d8acbf668ce6bac6989c808a62b757ec07d7f Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 15 Mar 2019 13:29:08 +0100 Subject: [PATCH] check if there's a thumbnail file actually available --- .../thoughtcrime/securesms/map/GenerateInfoWindowTask.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/thoughtcrime/securesms/map/GenerateInfoWindowTask.java b/src/org/thoughtcrime/securesms/map/GenerateInfoWindowTask.java index 917c638ac..e73aede81 100644 --- a/src/org/thoughtcrime/securesms/map/GenerateInfoWindowTask.java +++ b/src/org/thoughtcrime/securesms/map/GenerateInfoWindowTask.java @@ -147,9 +147,9 @@ public class GenerateInfoWindowTask extends AsyncTask, HashMa } } - private boolean hasImgThumbnail(DcMsg messageRecord) { - int type = messageRecord.getType(); - return type==DcMsg.DC_MSG_IMAGE; + private boolean hasImgThumbnail(DcMsg dcMsg) { + int type = dcMsg.getType(); + return type == DcMsg.DC_MSG_IMAGE && dcMsg.hasFile(); } public Uri getThumbnailUri(DcMsg dcMsg) {