diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-05-16 12:49:04 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-05-16 12:49:04 +0200 |
commit | fce30f22c9c75fb4bc12992e6d7e7161ce5148b1 (patch) | |
tree | 9f8a08d80708e258effe15448347afa3abe1d1b7 /src/main/java/eu/siacs/conversations/entities/Message.java | |
parent | 7ccdc772edccb2cd71150441cf21dbcab7e6e7d9 (diff) |
made white space check in bodyContainsDownloadable less aggresive
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities/Message.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Message.java | 2 |
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 a8bb9c55..38152edb 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 { |