Indicator on nodes

This commit is contained in:
2026-01-09 21:33:52 +01:00
parent bbd81fd7b4
commit 32fa227643
+3 -15
View File
@@ -25,21 +25,9 @@ export default function DMs() {
await targetNode.current?.waitUntilReady();
await app.node.current?.waitUntilReady();
switch (req.type) {
case "send_message":
targetNode.current?.socket?.send(JSON.stringify(req));
if (target?.node_address !== app.profile?.node_address)
app.node.current?.socket?.send(JSON.stringify(req));
break;
case "load_chunk":
targetNode.current?.socket?.send(JSON.stringify(req));
if (target?.node_address !== app.profile?.node_address)
app.node.current?.socket?.send(JSON.stringify(req));
break;
default:
app.node.current?.socket?.send(JSON.stringify(req));
break;
}
targetNode.current?.socket?.send(JSON.stringify(req));
if (target?.node_address !== app.profile?.node_address)
app.node.current?.socket?.send(JSON.stringify(req));
};
const targetNode = useNullNode();