diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-05 20:44:05 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-05 20:44:05 +0200 |
commit | 0446624c51942118e74fbba93d40d83a9856723d (patch) | |
tree | 60faffcc7994f3b9bc05644e6129b31f5aa620f1 /src/main/java/de/pixart/messenger/utils/UIHelper.java | |
parent | f37b1410e17ac8400c8b87a09b81b8af50c74e9d (diff) |
filter sequences of more than 3 ltr-rtl
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/UIHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/UIHelper.java b/src/main/java/de/pixart/messenger/utils/UIHelper.java index dc15d41e4..e167e8c84 100644 --- a/src/main/java/de/pixart/messenger/utils/UIHelper.java +++ b/src/main/java/de/pixart/messenger/utils/UIHelper.java @@ -278,7 +278,7 @@ public class UIHelper { } else if (message.getType() == Message.TYPE_FILE || message.getType() == Message.TYPE_IMAGE) { return new Pair<>(getFileDescriptionString(context, message), true); } else { - final String body = message.getBody(); + final String body = MessageUtils.filterLtrRtl(message.getBody()); if (body.startsWith(Message.ME_COMMAND)) { return new Pair<>(body.replaceAll("^" + Message.ME_COMMAND, UIHelper.getMessageDisplayName(message)), false); } else if (message.isGeoUri()) { |