diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-04-13 21:24:52 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-04-13 21:24:52 +0200 |
commit | 22229d6b4312108144e1f132272dd9e9d848fdf7 (patch) | |
tree | 64f64126a696a945ffda32658b8d3e71d7c18e83 /src/main/java/de/pixart/messenger/services | |
parent | 522538e2acbc104346f8669e61cdb35731481837 (diff) |
treat URL as file if URL is in oob or contains key
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index adc106ee5..25b87f761 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -482,10 +482,7 @@ public class NotificationService { private Message getFirstDownloadableMessage(final Iterable<Message> messages) { for (final Message message : messages) { - if (message.getTransferable() != null - && (message.getType() == Message.TYPE_FILE - || message.getType() == Message.TYPE_IMAGE - || message.treatAsDownloadable() != Message.Decision.NEVER)) { + if (message.getTransferable() != null || (message.getType() == Message.TYPE_TEXT && message.treatAsDownloadable())) { return message; } } |