Message chunk loading test

This commit is contained in:
2025-12-22 19:55:05 +01:00
parent eeae53bd01
commit f92449c493
12 changed files with 61 additions and 147 deletions
+2 -6
View File
@@ -11,7 +11,7 @@ export default function ChannelView({
serverRef,
}: {
app: App;
messages: Record<string, Message[]>;
messages: Message[];
ip: string;
serverRef: React.RefObject<WebSocket | null>;
}) {
@@ -25,11 +25,7 @@ export default function ChannelView({
<MessageBox
app={app}
channelName={app.currentChannel.name}
messages={
messages[ip]?.filter(
(m) => m.channel_id === app.currentChannel?.id
) || []
}
messages={messages}
sendRequest={(req) => serverRef.current?.send(JSON.stringify(req))}
/>
);