diff --git a/src/renderer/src/components/AccountsPanel.tsx b/src/renderer/src/components/AccountsPanel.tsx index 978235e..566c5e8 100644 --- a/src/renderer/src/components/AccountsPanel.tsx +++ b/src/renderer/src/components/AccountsPanel.tsx @@ -3,6 +3,7 @@ import { Icon, IconButton, MaskIcon } from './Icon' import { MatrixAccountTools } from './MatrixAccountTools' import { useChat, usePref, useStore } from '../state/hooks' import { bufferDisplayName, resolveMediaUrl, serviceIcon, serviceLabel } from '../lib/util' +import { IRC_NETWORKS, ircNetworkFor } from '../lib/networks' import type { Account } from '../../../shared/wire' const ADDABLE = ['irc', 'discord', 'sockchat', 'matrix'] as const @@ -380,6 +381,32 @@ function IrcForm({ onDone }: { onDone: () => void }): JSX.Element { Nickname setNick(e.target.value)} /> + {/* Typing a hostname and port correctly is the one step here where a + small mistake looks like the server being down, so the networks + people actually join are offered ready-made. Choosing one fills + the fields rather than hiding them: they stay editable, and a + network not on the list is typed in exactly as before. */} +