show http downloaded images in notification

This commit is contained in:
Daniel Gultsch 2015-07-29 01:57:08 +02:00
parent 8f14d2bfbd
commit 17bc4fb6cd
1 changed files with 3 additions and 2 deletions

View File

@ -332,9 +332,10 @@ public class NotificationService {
private Message getImage(final Iterable<Message> messages) {
for (final Message message : messages) {
if (message.getType() == Message.TYPE_IMAGE
if (message.getType() != Message.TYPE_TEXT
&& message.getTransferable() == null
&& message.getEncryption() != Message.ENCRYPTION_PGP) {
&& message.getEncryption() != Message.ENCRYPTION_PGP
&& message.getFileParams().height > 0) {
return message;
}
}