Fix parsing a little bit

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-08-06 23:05:34 +02:00
parent 08710d5f1c
commit c311ec9bf4
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ public class NotificationJob extends Job {
// do absolutely nothing, we won't even come to this point
break;
case "chat":
if (decryptedPushMessage.getNotificationId() != Long.MIN_VALUE) {
if (decryptedPushMessage.getNotificationId() != null) {
showMessageNotificationWithObjectData(intent);
} else {
showNotification(intent);

View File

@ -45,7 +45,7 @@ public class DecryptedPushMessage {
String id;
@JsonField(name = "nid")
long notificationId;
Long notificationId;
@JsonIgnore
String text;