aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2015-08-12 18:28:56 +0200
committerlookshe <github@lookshe.org>2015-08-12 18:28:56 +0200
commit473f0353550f81bb95cb576caa47089a6e62671e (patch)
tree1ffbf2d3b4e62a60e62f855a2961cb1d7a8bb3f8
parentb085643555e595d7c2a768016c6ef8ad124a5ca5 (diff)
Fixes FS#33 - Get back the comment
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Message.java5
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;
}