Fix NullPointerException with double push

This commit is contained in:
S1m
2024-02-06 09:14:31 +01:00
parent f7dfebcbea
commit c8604ad68e
3 changed files with 11 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ public class UnifiedPushNotificationReceiver extends MessagingReceiver{
result.items
.stream()
.findFirst()
.ifPresent(value->MastodonAPIController.runInBackground(()->new PushNotificationReceiver().notifyUnifiedPush(context, instance, value)));
.ifPresent(value->MastodonAPIController.runInBackground(()->new PushNotificationReceiver().notifyUnifiedPush(context, account, value)));
}
@Override