Merge branch 'master' into donations
This commit is contained in:
commit
1dd40a77de
|
@ -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){
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue