keyed conversations against from/to, updated tests

This commit is contained in:
Dan Ditomaso committed 2025-04-03 17:03:08 -04:00
1 parent 5f424e2e0b
commit eadadb5d1d
5 files changed
+414 -346

No files matched your search

@@ -13,7 +13,6 @@ export interface MessageInputProps {
maxBytes: number;
}
export const MessageInput = ({
to,
channel,
@@ -90,11 +90,7 @@ export const MessageItem = ({ lastMsgSameUser, message }: MessageProps) => {
const messageUser: Protobuf.Mesh.NodeInfo | null = useMemo(() => {
if (message?.from === null || message?.from === undefined) return null;
for (const device of getDevices()) {
console.log("MessageItem: getDevices", { device });
if (device.nodes.has(message.from)) {
console.log("MessageItem hasNode", { device, message });
return device.nodes.get(message.from) ?? null;
}
}