Browse Source

Don't show traceroute button on Channels

It doesn't work, it's only for nodes!
pull/211/head
Tom Fifield 2 years ago
parent
commit
a728b848e1
  1. 8
      src/pages/Messages.tsx

8
src/pages/Messages.tsx

@ -76,7 +76,9 @@ export const MessagesPage = (): JSX.Element => {
? nodes.get(activeChat)?.user?.longName ?? "Unknown" ? nodes.get(activeChat)?.user?.longName ?? "Unknown"
: "Loading..." : "Loading..."
}`} }`}
actions={[ actions={
chatType === "direct"
? [
{ {
icon: WaypointsIcon, icon: WaypointsIcon,
async onClick() { async onClick() {
@ -87,7 +89,9 @@ export const MessagesPage = (): JSX.Element => {
); );
}, },
}, },
]} ]
: []
}
> >
{allChannels.map( {allChannels.map(
(channel) => (channel) =>

Loading…
Cancel
Save