Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7774dfd authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

fix: check PreconditionFailedException on syncFailed

parent 4bbd0b19
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -850,7 +850,7 @@ abstract class SyncManager<ResourceType: LocalResource<*>, out CollectionType: L
                message = context.getString(R.string.sync_error_io, e.localizedMessage)
                syncResult.stats.numIoExceptions++
            }
            is UnauthorizedException -> {
            is UnauthorizedException, is PreconditionFailedException -> {
                message = context.getString(R.string.sync_error_authentication_failed)
                syncResult.stats.numAuthExceptions++