mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-04 21:09:53 +02:00
Use the updated access token to fetch new notifications in PullNotificationWorker. This may fix notification issues.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user