mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
check if there's a thumbnail file actually available
This commit is contained in:
@@ -147,9 +147,9 @@ public class GenerateInfoWindowTask extends AsyncTask<ArrayList<Feature>, 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) {
|
||||
|
||||
Reference in New Issue
Block a user