Restored user's node to ui (messages/node list) (#878)

* fix: restored own node to ui

* Update packages/web/src/pages/Messages.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/web/src/core/stores/nodeDBStore/index.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dan Ditomaso
2025-10-11 10:07:56 -04:00
committed by GitHub
co-authored by Copilot
parent 76ba4e917e
commit c66b315623
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ export const MessagesPage = () => {
longName.includes(lowerCaseSearchTerm) ||
shortName.includes(lowerCaseSearchTerm)
);
})
}, true)
.map((node: Protobuf.Mesh.NodeInfo) => ({
...node,
unreadCount: getUnreadCount(node.num) ?? 0,
+1 -1
View File
@@ -67,7 +67,7 @@ const NodesPage = (): JSX.Element => {
// subscribe to actual data (nodes array) and to nodeErrors ref for badge updates
const { nodes: filteredNodes, hasNodeError } = useNodeDB(
(db) => ({
nodes: db.getNodes(predicate, false),
nodes: db.getNodes(predicate, true),
hasNodeError: db.hasNodeError,
_errorsRef: db.nodeErrors, // include the Map ref so UI also re-renders on error changes
}),