diff options
author | lookshe <github@lookshe.org> | 2015-08-16 00:02:14 +0200 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2015-08-16 00:02:14 +0200 |
commit | fe3a3c24711538e1d866cf107481df6f69152494 (patch) | |
tree | 84bacb752b998558dc92ed4568379c6ff6aba3c2 /src/main/java/eu/siacs/conversations/utils | |
parent | cfefe9a0bd156ee1c0afac3ea5eac94ba3ad239d (diff) |
Fixes FS#37 - Remove special treatment of unicode hearts
Fixes FS#34 - review all calls for String.trim()
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/UIHelper.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index de669ea6..1e3d1caf 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -400,9 +400,9 @@ public class UIHelper { if (counterpart==null) { return ""; } else if (!counterpart.isBareJid()) { - return counterpart.getResourcepart().trim(); + return counterpart.getResourcepart(); } else { - return counterpart.toString().trim(); + return counterpart.toString(); } } @@ -412,7 +412,7 @@ public class UIHelper { || message.getType() != Message.TYPE_TEXT) { return false; } - String body = message.getBody() == null ? null : message.getBody().trim().toLowerCase(Locale.getDefault()); + String body = message.getBody() == null ? null : message.getBody().toLowerCase(Locale.getDefault()); body = body.replace("?","").replace("¿",""); return LOCATION_QUESTIONS.contains(body); } |