aboutsummaryrefslogtreecommitdiffstats
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
parent7ccdc772edccb2cd71150441cf21dbcab7e6e7d9 (diff)
made white space check in bodyContainsDownloadable less aggresive
-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 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 {