From 281e98974967175a23814e9d143b83866488c858 Mon Sep 17 00:00:00 2001 From: sim Date: Tue, 21 Jan 2025 17:58:24 +0100 Subject: [PATCH] Use server VAPID keys --- .../joinmastodon/android/api/session/AccountSessionManager.java | 2 +- .../java/org/joinmastodon/android/utils/UnifiedPushHelper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java index e37e2b698c..e09649a62d 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java @@ -133,7 +133,7 @@ public void addAccount(Instance instance, Token token, Account self, Application context, session.getID(), null, - null + session.app.vapidKey.replaceAll("=","") ); } else if(PushSubscriptionManager.arePushNotificationsAvailable()){ session.getPushSubscriptionManager().registerAccountForPush(null); diff --git a/mastodon/src/main/java/org/joinmastodon/android/utils/UnifiedPushHelper.java b/mastodon/src/main/java/org/joinmastodon/android/utils/UnifiedPushHelper.java index aba3ca8640..af78d845e8 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/utils/UnifiedPushHelper.java +++ b/mastodon/src/main/java/org/joinmastodon/android/utils/UnifiedPushHelper.java @@ -33,7 +33,7 @@ public static void registerAllAccounts(@NonNull Context context) { context, accountSession.getID(), null, - null + accountSession.app.vapidKey.replaceAll("=","") ); } }