aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-08 11:55:45 +0300
committerGravatar Vitaly Takmazov2018-04-08 11:55:45 +0300
commitc08f9cf15e417504c20983c1ae5cf5cfc391662f (patch)
tree363c5649b1b61ac767f444d2494b6aee26aebd11 /juick-notifications/src/main/java/com/juick/components
parent867d82cf39026c09de06928f396d7f1c6cb9e90d (diff)
notifications: push uname to APNS for PMs
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/Notifications.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/Notifications.java b/juick-notifications/src/main/java/com/juick/components/Notifications.java
index 410debd4..5f6630fb 100644
--- a/juick-notifications/src/main/java/com/juick/components/Notifications.java
+++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java
@@ -176,6 +176,7 @@ public class Notifications implements NotificationClientListener, AutoCloseable,
if (!tokens.isEmpty()) {
ApnsPayloadBuilder apnsPayloadBuilder = new ApnsPayloadBuilder();
apnsPayloadBuilder.addCustomProperty("mid", jmsg.getMid());
+ apnsPayloadBuilder.addCustomProperty("uname", jmsg.getUser().getName());
String post = PlainTextFormatter.formatPost(jmsg);
String[] parts = post.split("\n", 2);
String payload = apnsPayloadBuilder.setAlertTitle(parts[0])