aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/entities
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-05-10 12:04:11 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-05-10 12:04:11 +0200
commit239e86a98a4af8ab7ce7f6b96bed0bb4dc9e4bb5 (patch)
treef2274df57d42fa0d8568fc1f0878bc81270632aa /src/main/java/eu/siacs/conversations/entities
parent33d1621e3b2c9a34689dfddc71eeb9ee4d91c348 (diff)
optimized heart render code a bit
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Message.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java
index 4dac0b98..c87e5518 100644
--- a/src/main/java/eu/siacs/conversations/entities/Message.java
+++ b/src/main/java/eu/siacs/conversations/entities/Message.java
@@ -478,10 +478,7 @@ public class Message extends AbstractEntity {
}
public boolean bodyIsHeart() {
- return body != null &&
- (body.trim().equals(UIHelper.BLACK_HEART_SUIT)
- || body.trim().equals(UIHelper.HEAVY_BLACK_HEART_SUIT)
- || body.trim().equals(UIHelper.WHITE_HEART_SUIT));
+ return body != null && UIHelper.HEARTS.contains(body.trim());
}
public ImageParams getImageParams() {