forked from coracle/flotilla
Ignore another invite code error
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ VITE_PLATFORM_SECONDARY="#EB5E28"
|
||||
VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities."
|
||||
VITE_PUSH_SERVER=https://nps.flotilla.social/
|
||||
VITE_PUSH_BRIDGE=wss://npb.coracle.social/
|
||||
VITE_BLOCKED_RELAYS=brb.io,relay.nostr.band,nostr.mutinywallet.com,feeds.nostr.band,nostr.zbd.gg,wot.utxo.one
|
||||
VITE_BLOCKED_RELAYS=brb.io,relay.nostr.band,nostr.mutinywallet.com,feeds.nostr.band,nostr.zbd.gg,wot.utxo.one,blastr.f7z.xyz,relay.current.fyi
|
||||
VITE_INDEXER_RELAYS=purplepag.es,relay.damus.io,indexer.coracle.social
|
||||
VITE_DEFAULT_RELAYS=relay.damus.io,relay.primal.net,nostr.mom
|
||||
VITE_DEFAULT_MESSAGING_RELAYS=auth.nostr1.com
|
||||
|
||||
@@ -209,7 +209,7 @@ export const attemptRelayAccess = async (url: string, claim = "") => {
|
||||
const error = await waitForThunkError(thunk)
|
||||
|
||||
if (shouldIgnoreError(error)) return
|
||||
|
||||
if (!claim && error.includes("invite code size")) return
|
||||
if (error.includes("invite code")) return "join request rejected"
|
||||
|
||||
return stripPrefix(error)
|
||||
|
||||
@@ -656,6 +656,8 @@ class WebNotifications implements IPushAdapter {
|
||||
}
|
||||
|
||||
_notify(event: TrustedEvent, title: string, body: string) {
|
||||
console.log("notify:", event)
|
||||
|
||||
const notification = new Notification(title, {
|
||||
body,
|
||||
tag: event.id,
|
||||
|
||||
Reference in New Issue
Block a user