Просмотр исходного кода

Revert "Fix parsing a little bit"

This reverts commit c311ec9bf4ae818295e344b709b0d89f91f978aa.
Mario Danic 6 лет назад
Родитель
Сommit
298483acbd

+ 1 - 1
app/src/main/java/com/nextcloud/talk/jobs/NotificationJob.java

@@ -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() != null) {
+                                    if (decryptedPushMessage.getNotificationId() != Long.MIN_VALUE) {
                                         showMessageNotificationWithObjectData(intent);
                                     } else {
                                         showNotification(intent);

+ 1 - 1
app/src/main/java/com/nextcloud/talk/models/json/push/DecryptedPushMessage.java

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