remove all whitespaces in emoji only messages

This commit is contained in:
Daniel Gultsch 2017-08-03 10:55:14 +02:00
parent 225cca4566
commit 7bcf173866
2 changed files with 2 additions and 2 deletions

View File

@ -669,7 +669,7 @@ public class Message extends AbstractEntity {
}
public boolean bodyIsOnlyEmojis() {
return EmojiManager.isOnlyEmojis(body.trim());
return EmojiManager.isOnlyEmojis(body.replaceAll("\\s",""));
}
public FileParams getFileParams() {

View File

@ -793,7 +793,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
if (GeoHelper.isGeoUri(message.getBody())) {
displayLocationMessage(viewHolder,message);
} else if (message.bodyIsOnlyEmojis()) {
displayEmojiMessage(viewHolder, message.getBody().trim());
displayEmojiMessage(viewHolder, message.getBody().replaceAll("\\s",""));
} else if (message.treatAsDownloadable()) {
try {
URL url = new URL(message.getBody());