remove all whitespaces in emoji only messages
This commit is contained in:
parent
225cca4566
commit
7bcf173866
|
@ -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() {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue