mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 10:57:04 +00:00
Ignore unnecessary error
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
* Add light theme
|
* Add light theme
|
||||||
* Use correct alerts server
|
* Use correct alerts server
|
||||||
|
* Ignore relay errors for claims
|
||||||
|
|
||||||
# 1.0.2
|
# 1.0.2
|
||||||
|
|
||||||
|
|||||||
@@ -276,10 +276,13 @@ export const checkRelayAccess = async (url: string, claim = "") => {
|
|||||||
|
|
||||||
// If it's a strict NIP 29 relay don't worry about requesting access
|
// If it's a strict NIP 29 relay don't worry about requesting access
|
||||||
// TODO: remove this if relay29 ever gets less strict
|
// TODO: remove this if relay29 ever gets less strict
|
||||||
if (message !== "missing group (`h`) tag") {
|
if (message === "missing group (`h`) tag") return
|
||||||
|
|
||||||
|
// Ignore messages about the relay ignoring ours
|
||||||
|
if (error?.startsWith("mute: ")) return
|
||||||
|
|
||||||
return message
|
return message
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const checkRelayProfile = async (url: string) => {
|
export const checkRelayProfile = async (url: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user