This commit is contained in:
Grishka 2024-05-21 22:23:15 +03:00
parent 29ab502d2e
commit b2c797fb46
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class PushNotificationReceiver extends BroadcastReceiver{
} }
String accountID=account.getID(); String accountID=account.getID();
PushNotification pn=AccountSessionManager.getInstance().getAccount(accountID).getPushSubscriptionManager().decryptNotification(k, p, s); PushNotification pn=AccountSessionManager.getInstance().getAccount(accountID).getPushSubscriptionManager().decryptNotification(k, p, s);
new GetNotificationByID(pn.notificationId+"") new GetNotificationByID(pn.notificationId)
.setCallback(new Callback<>(){ .setCallback(new Callback<>(){
@Override @Override
public void onSuccess(org.joinmastodon.android.model.Notification result){ public void onSuccess(org.joinmastodon.android.model.Notification result){

View File

@ -10,7 +10,7 @@ import androidx.annotation.StringRes;
public class PushNotification extends BaseModel{ public class PushNotification extends BaseModel{
public String accessToken; public String accessToken;
public String preferredLocale; public String preferredLocale;
public long notificationId; public String notificationId;
@RequiredField @RequiredField
public Type notificationType; public Type notificationType;
@RequiredField @RequiredField