fix: 🐛
This commit is contained in:
@@ -47,6 +47,9 @@ export default function MailboxSetting() {
|
||||
const saveNewMailboxRelay = (url: string) => {
|
||||
if (url === '') return null
|
||||
const normalizedUrl = normalizeUrl(url)
|
||||
if (!normalizedUrl) {
|
||||
return t('Invalid relay URL')
|
||||
}
|
||||
if (relays.some((r) => r.url === normalizedUrl)) {
|
||||
return t('Relay already exists')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user