mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-01 05:02:21 -05:00
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) {
|
private Message getImage(final Iterable<Message> messages) {
|
||||||
for (final Message message : messages) {
|
for (final Message message : messages) {
|
||||||
if (message.getType() == Message.TYPE_IMAGE
|
if (message.getType() != Message.TYPE_TEXT
|
||||||
&& message.getTransferable() == null
|
&& message.getTransferable() == null
|
||||||
&& message.getEncryption() != Message.ENCRYPTION_PGP) {
|
&& message.getEncryption() != Message.ENCRYPTION_PGP
|
||||||
|
&& message.getFileParams().height > 0) {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user