Browse Source

get rid of superfluous close notices

imwald
Silberengel 2 months ago
parent
commit
1481921a89
  1. 14
      src/components/NoteList/index.tsx
  2. 4
      src/i18n/locales/de.ts
  3. 4
      src/i18n/locales/en.ts

14
src/components/NoteList/index.tsx

@ -272,6 +272,20 @@ const NoteList = forwardRef(
) { ) {
return return
} }
// don't toast for routine connection failures (noisy and expected when relays are down/slow)
const r = reason.toLowerCase()
if (
r.includes('connection failed') ||
r.includes('econnrefused') ||
r.includes('econnreset') ||
r.includes('etimedout') ||
r.includes('timeout') ||
r.includes('network') ||
r.includes('enotfound') ||
r.includes('connection refused')
) {
return
}
toast.error(`${url}: ${reason}`) toast.error(`${url}: ${reason}`)
} }

4
src/i18n/locales/de.ts

@ -260,9 +260,9 @@ export default {
Autoplay: 'Automatische Wiedergabe', Autoplay: 'Automatische Wiedergabe',
'Enable video autoplay on this device': 'Enable video autoplay on this device':
'Aktiviere die automatische Video-Wiedergabe auf diesem Gerät', 'Aktiviere die automatische Video-Wiedergabe auf diesem Gerät',
'Add 3 random relays to every publish': 'Relay-Liste mit 3 zufälligen öffentlichen Relays vorfüllen', 'Add 3 random relays to every publish': '3 zufällige Relays bei jedem Publish hinzufügen',
'Add 3 random relays to every publish description': 'Add 3 random relays to every publish description':
'Zeigt 3 zufällige öffentliche Relays in der Publish-Relay-Liste (nicht angehakt), damit du sie optional für mehr Zensur-Resilienz auswählen kannst.', 'Fügt der Publish-Relay-Liste immer 3 zufällige öffentliche Relays hinzu. Bei AN sind sie standardmäßig ausgewählt; bei AUS erscheinen sie in der Liste, sind aber nicht angehakt, sodass du sie optional einbeziehen kannst.',
'relayType_local': 'Lokal', 'relayType_local': 'Lokal',
'relayType_relay_list': 'Relay-Liste', 'relayType_relay_list': 'Relay-Liste',
'relayType_client_default': 'Client-Standard', 'relayType_client_default': 'Client-Standard',

4
src/i18n/locales/en.ts

@ -322,9 +322,9 @@ export default {
General: 'General', General: 'General',
Autoplay: 'Autoplay', Autoplay: 'Autoplay',
'Enable video autoplay on this device': 'Enable video autoplay on this device', 'Enable video autoplay on this device': 'Enable video autoplay on this device',
'Add 3 random relays to every publish': 'Preload relay list with 3 random public relays', 'Add 3 random relays to every publish': 'Random relays in publish list',
'Add 3 random relays to every publish description': 'Add 3 random relays to every publish description':
'Show 3 random public relays in the publish relay list (unchecked) so you can optionally include them for censorship resilience.', 'Always adds 3 random public relays to the publish relay list. When ON, they are selected by default; when OFF, they appear in the list but are unchecked so you can optionally include them.',
'relayType_local': 'Local', 'relayType_local': 'Local',
'relayType_relay_list': 'Relay list', 'relayType_relay_list': 'Relay list',
'relayType_client_default': 'Client default', 'relayType_client_default': 'Client default',

Loading…
Cancel
Save