update to namespaced protobufs
This commit is contained in:
@@ -13,7 +13,7 @@ import { Protobuf, Types } from "@meshtastic/js";
|
||||
import { ImportIcon, QrCodeIcon } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
|
||||
export const getChannelName = (channel: Protobuf.Channel) =>
|
||||
export const getChannelName = (channel: Protobuf.Channel.Channel) =>
|
||||
channel.settings?.name.length
|
||||
? channel.settings?.name
|
||||
: channel.index === 0
|
||||
|
||||
@@ -22,7 +22,7 @@ export const MessagesPage = (): JSX.Element => {
|
||||
);
|
||||
const allChannels = Array.from(channels.values());
|
||||
const filteredChannels = allChannels.filter(
|
||||
(ch) => ch.role !== Protobuf.Channel_Role.DISABLED,
|
||||
(ch) => ch.role !== Protobuf.Channel.Channel_Role.DISABLED,
|
||||
);
|
||||
const currentChannel = channels.get(activeChat);
|
||||
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ export const PeersPage = (): JSX.Element => {
|
||||
: `UNK: ${node.num}`)}
|
||||
</h1>,
|
||||
|
||||
<Mono>{Protobuf.HardwareModel[node.user?.hwModel ?? 0]}</Mono>,
|
||||
<Mono>{Protobuf.Mesh.HardwareModel[node.user?.hwModel ?? 0]}</Mono>,
|
||||
<Mono>
|
||||
{base16
|
||||
.stringify(node.user?.macaddr ?? [])
|
||||
|
||||
Reference in New Issue
Block a user