spread on the map

This commit is contained in:
Hunter275
2025-03-09 00:57:52 -05:00
parent 3bfd96defe
commit 1f1a3c5de8
+4 -1
View File
@@ -21,7 +21,10 @@ export const MessagesPage = () => {
if (node.num === hardware.myNodeNum) return false;
const nodeName = node.user?.longName ?? `!${numberToHexUnpadded(node.num)}`;
return nodeName.toLowerCase().includes(searchTerm.toLowerCase());
}).map((node) => { node.unreadCount = unreadCounts.get(node.num) ?? 0; return node;})
}).map((node) => {
node = {...node, unreadCount: unreadCounts.get(node.num) ?? 0}
return node;
})
.sort((a, b) => b.unreadCount - a.unreadCount);
const allChannels = Array.from(channels.values());
const filteredChannels = allChannels.filter(