mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-27 19:38:22 +01:00
Use the updated access token to fetch new notifications in PullNotificationWorker. This may fix notification issues.
This commit is contained in:
parent
840216b3d9
commit
d7fcb66cda
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user