aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/utils
diff options
context:
space:
mode:
authorDaniel Gultsch <inputmice@siacs.eu>2015-02-07 12:29:17 +0100
committerDaniel Gultsch <inputmice@siacs.eu>2015-02-07 12:29:17 +0100
commit00b2e30938a2a185e4c786fc683b60cf47774019 (patch)
tree2c49c74cc7c74875e9610f2072eeb92aee8c8783 /src/main/java/eu/siacs/conversations/utils
parente1e09d5cba9374935d8c872ead21131f5dd61625 (diff)
trim message bodys on display
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/UIHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java
index 235ef84c..e36c169b 100644
--- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java
@@ -154,7 +154,7 @@ public class UIHelper {
return new Pair<>(message.getBody().replaceAll("^" + Message.ME_COMMAND,
UIHelper.getMessageDisplayName(message) + " "), false);
} else {
- return new Pair<>(message.getBody(), false);
+ return new Pair<>(message.getBody().trim(), false);
}
}
}