feat: removed traceroute from message screen.

This commit is contained in:
Dan Ditomaso
2025-02-03 12:36:33 -05:00
parent d9ad044ecd
commit 794d214636
2 changed files with 1 additions and 34 deletions

View File

@@ -5,8 +5,7 @@ import {
} from "@app/core/stores/deviceStore.ts";
import { Message } from "@components/PageComponents/Messages/Message.tsx";
import { MessageInput } from "@components/PageComponents/Messages/MessageInput.tsx";
import { TraceRoute } from "@components/PageComponents/Messages/TraceRoute.tsx";
import type { Protobuf, Types } from "@meshtastic/js";
import type { Types } from "@meshtastic/js";
import { InboxIcon } from "lucide-react";
import type { JSX } from "react";
@@ -14,7 +13,6 @@ export interface ChannelChatProps {
messages?: MessageWithState[];
channel: Types.ChannelNumber;
to: Types.Destination;
traceroutes?: Types.PacketMetadata<Protobuf.Mesh.RouteDiscovery>[];
}
const EmptyState = () => (
@@ -28,7 +26,6 @@ export const ChannelChat = ({
messages,
channel,
to,
traceroutes,
}: ChannelChatProps): JSX.Element => {
const { nodes } = useDevice();
@@ -64,21 +61,6 @@ export const ChannelChat = ({
<MessageInput to={to} channel={channel} />
</div>
</div>
{/* {to === "broadcast" ? null : traceroutes ? (
traceroutes.map((traceroute, index) => (
<TraceRoute
key={traceroute.id}
from={nodes.get(traceroute.from)}
to={nodes.get(traceroute.to)}
route={traceroute.data.route}
/>
))
) : (
<div className="m-auto">
<InboxIcon className="m-auto" />
<Subtle>No Traceroutes</Subtle>
</div>
)} */}
</>
);
};

View File

@@ -108,21 +108,6 @@ const MessagesPage = () => {
});
},
},
{
icon: WaypointsIcon,
async onClick() {
const targetNode = nodes.get(activeChat)?.num;
if (targetNode === undefined) return;
toast({
title: "Sending Traceroute, please wait...",
});
await connection?.traceRoute(targetNode).then(() =>
toast({
title: "Traceroute sent.",
}),
);
},
},
]
: []
}