diff options
author | lookshe <github@lookshe.org> | 2015-08-12 18:28:56 +0200 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2015-08-12 18:28:56 +0200 |
commit | 473f0353550f81bb95cb576caa47089a6e62671e (patch) | |
tree | 1ffbf2d3b4e62a60e62f855a2961cb1d7a8bb3f8 /src/main/java/eu/siacs | |
parent | b085643555e595d7c2a768016c6ef8ad124a5ca5 (diff) |
Fixes FS#33 - Get back the comment
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Message.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index 9a904cab..eaa15de4 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -506,6 +506,11 @@ public class Message extends AbstractEntity { } public Decision treatAsDownloadable() { + /** + * there are a few cases where spaces result in an unwanted behavior, e.g. + * "http://example.com/image.jpg" text that will not be shown /abc.png" + * or more than one image link in one message. + */ if (body.trim().contains(" ")) { return Decision.NEVER; } |