show http downloaded images in notification
This commit is contained in:
parent
8f14d2bfbd
commit
17bc4fb6cd
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue