diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 59cf091..dd8adfc 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -40,7 +40,7 @@ export default function RootLayout({ }} > - + {children} diff --git a/src/components/channel/InputArea.tsx b/src/components/channel/InputArea.tsx index 4af4603..439a69d 100644 --- a/src/components/channel/InputArea.tsx +++ b/src/components/channel/InputArea.tsx @@ -130,9 +130,9 @@ export default function InputArea({ channel }: Readonly) { }) ); - //client.sentMessagesIds.push(tempMessageId); + if (client.links.api) { + client.sentMessagesIds.push(tempMessageId); - if (client.links.api) await ky .post(`${client.links.api}/channels/${channel?.id}/messages`, { json: { content: content, nonce: tempMessageId } @@ -163,6 +163,7 @@ export default function InputArea({ channel }: Readonly) { }) ); }); + } } } diff --git a/src/components/general/ConnectionStatus.tsx b/src/components/general/ConnectionStatus.tsx index c996839..5e43e32 100644 --- a/src/components/general/ConnectionStatus.tsx +++ b/src/components/general/ConnectionStatus.tsx @@ -49,15 +49,24 @@ export default function ConnectionStatus() {
- - {statusSignals[statusIndex]} - Connecting... - +
+ + {statusSignals[statusIndex]} + Connecting... + +
)}