Skip to content

Commit

Permalink
Don't report errors when fetching announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton committed Oct 18, 2024
1 parent c619276 commit b45f497
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ class AccountManager @Inject constructor(
externalScope.async { listsRepository.refresh(account.id) }.await()
.mapError { RefreshAccountError.General(it) }.bind()

deferAnnouncements.await().bind()
// Ignore errors when fetching announcements, they're non-fatal.
// TODO: Add a capability for announcements.
deferAnnouncements.await().orElse { Ok(emptyList()) }.bind()
}

/**
Expand Down

0 comments on commit b45f497

Please sign in to comment.