aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-05-10 11:56:23 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-05-10 11:56:23 +0200
commit33d1621e3b2c9a34689dfddc71eeb9ee4d91c348 (patch)
treefa38ef0b2d97ee3accc23a08f14e6d8d5ddff0ec /src/main
parente6d336c293415f7906e9855c9108986f89eb2d5e (diff)
added white heart to new rendering as well
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Message.java4
-rw-r--r--src/main/java/eu/siacs/conversations/utils/UIHelper.java1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java
index 95e27c79..4dac0b98 100644
--- a/src/main/java/eu/siacs/conversations/entities/Message.java
+++ b/src/main/java/eu/siacs/conversations/entities/Message.java
@@ -479,7 +479,9 @@ 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.BLACK_HEART_SUIT)
+ || body.trim().equals(UIHelper.HEAVY_BLACK_HEART_SUIT)
+ || body.trim().equals(UIHelper.WHITE_HEART_SUIT));
}
public ImageParams getImageParams() {
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java
index 49354753..2cfd5823 100644
--- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java
@@ -20,6 +20,7 @@ public class UIHelper {
public static String BLACK_HEART_SUIT = "\u2665";
public static String HEAVY_BLACK_HEART_SUIT = "\u2764";
+ public static String WHITE_HEART_SUIT = "\u2661";
private static final int SHORT_DATE_FLAGS = DateUtils.FORMAT_SHOW_DATE
| DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL;