Skip to content

Commit

Permalink
Update getMessagesUids() Sentry to not log NetworkExceptions anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed May 14, 2024
1 parent 3ca36a2 commit 6aa484b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ class RefreshController @Inject constructor(
//region API calls
private fun getMessagesUids(folderId: String, info: PaginationInfo?): NewMessagesResult? {
return with(ApiRepository.getMessagesUids(mailbox.uuid, folderId, okHttpClient, info)) {
if (!isSuccess()) throwErrorAsException()
if (!isSuccess() && error?.exception?.isNetworkException() != true) throwErrorAsException()
return@with data
}
}
Expand Down

0 comments on commit 6aa484b

Please sign in to comment.