Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
martindsq committed Jun 4, 2024
1 parent cdac7eb commit 24cd99f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Nos/Views/NIP05View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ struct NIP05View: View {
publicKey: publicKey
)
} catch URLError.cancelled {
// Cancelled requests are common in bad networks. We
// should keep things as they were to avoid reproducing
// https://github.com/planetary-social/nos/issues/1161
// URLSession cancels the request when the task is
// cancelled. Cancelled requests are common specially in
// bad networks because it is normal that the user
// scrolls past the author before the requests
// completes. Thus, we need to catch .cancelled so we
// don't display a strike-through in those cases.
return
} catch {
isVerified = false
Expand Down

0 comments on commit 24cd99f

Please sign in to comment.