From ef23734b221ee0ac0ca0581aeb58f90ead3173c4 Mon Sep 17 00:00:00 2001 From: Grishka Date: Tue, 21 May 2024 22:23:15 +0300 Subject: [PATCH] Fix #842 --- .../java/org/joinmastodon/android/PushNotificationReceiver.java | 2 +- .../java/org/joinmastodon/android/model/PushNotification.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java index 82f1428290..b26ba5fa76 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -101,7 +101,7 @@ public void onReceive(Context context, Intent intent){ } String accountID=account.getID(); PushNotification pn=AccountSessionManager.getInstance().getAccount(accountID).getPushSubscriptionManager().decryptNotification(k, p, s); - new GetNotificationByID(pn.notificationId+"") + new GetNotificationByID(pn.notificationId) .setCallback(new Callback<>(){ @Override public void onSuccess(org.joinmastodon.android.model.Notification result){ diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/PushNotification.java b/mastodon/src/main/java/org/joinmastodon/android/model/PushNotification.java index 6e4572bb57..d440db2bc6 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/PushNotification.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/PushNotification.java @@ -14,7 +14,7 @@ public class PushNotification extends BaseModel{ public String accessToken; public String preferredLocale; - public long notificationId; + public String notificationId; @RequiredField public Type notificationType; @RequiredField