aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/entities
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-05-16 12:49:04 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-05-16 12:49:04 +0200
commitfce30f22c9c75fb4bc12992e6d7e7161ce5148b1 (patch)
tree9f8a08d80708e258effe15448347afa3abe1d1b7 /src/main/java/eu/siacs/conversations/entities
parent7ccdc772edccb2cd71150441cf21dbcab7e6e7d9 (diff)
made white space check in bodyContainsDownloadable less aggresive
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Message.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java
index a8bb9c557..38152edba 100644
--- a/src/main/java/eu/siacs/conversations/entities/Message.java
+++ b/src/main/java/eu/siacs/conversations/entities/Message.java
@@ -440,7 +440,7 @@ public class Message extends AbstractEntity {
* "http://example.com/image.jpg text that will not be shown /abc.png"
* or more than one image link in one message.
*/
- if (body.contains(" ")) {
+ if (body.trim().contains(" ")) {
return false;
}
try {