From 874c1f4c7469ca747feb26af4cb0839752a7f8a1 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 1 Oct 2017 10:42:01 +0200 Subject: [PATCH] MessageAdapter: trim but don't replace all whitespaces before displaying emoji message --- .../java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 335ce1676..adc02a33c 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -802,7 +802,7 @@ public class MessageAdapter extends ArrayAdapter implements CopyTextVie if (message.isGeoUri()) { displayLocationMessage(viewHolder,message); } else if (message.bodyIsOnlyEmojis()) { - displayEmojiMessage(viewHolder, message.getBody().replaceAll("\\s","")); + displayEmojiMessage(viewHolder, message.getBody().trim()); } else if (message.treatAsDownloadable()) { try { URL url = new URL(message.getBody());