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) {