From d7fcb66cda6e21fae3c5275097591919c18f63d4 Mon Sep 17 00:00:00 2001 From: Docile-Alligator Date: Sat, 2 Apr 2022 22:26:35 +0800 Subject: Use the updated access token to fetch new notifications in PullNotificationWorker. This may fix notification issues. --- .../ml/docilealligator/infinityforreddit/PullNotificationWorker.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java index 44668b13..80e54fea 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java @@ -227,6 +227,7 @@ public class PullNotificationWorker extends Worker { if (response.code() == 401) { String accessToken = refreshAccessToken(account); if (!accessToken.equals("")) { + account.setAccessToken(accessToken); return fetchMessages(account, retryCount - 1); } -- cgit v1.2.3