Use the updated access token to fetch new notifications in PullNotificationWorker. This may fix notification issues.

This commit is contained in:
Docile-Alligator 2022-04-02 22:26:35 +08:00
parent 840216b3d9
commit d7fcb66cda

View File

@ -227,6 +227,7 @@ public class PullNotificationWorker extends Worker {
if (response.code() == 401) { if (response.code() == 401) {
String accessToken = refreshAccessToken(account); String accessToken = refreshAccessToken(account);
if (!accessToken.equals("")) { if (!accessToken.equals("")) {
account.setAccessToken(accessToken);
return fetchMessages(account, retryCount - 1); return fetchMessages(account, retryCount - 1);
} }