From 42768ba7ad9ba9a8bc18e5391974ebc7eee461ce Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 5 May 2024 02:41:54 +1200 Subject: [PATCH] allowing searching peers by destination hash --- public/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index da6e999..0b55e76 100644 --- a/public/index.html +++ b/public/index.html @@ -1019,7 +1019,8 @@ return this.peersOrderedByLatestAnnounce.filter((peer) => { const search = this.peersSearchTerm.toLowerCase(); const matchesAppData = (peer.app_data || "").toLowerCase().includes(search); - return matchesAppData; + const matchesDestinationHash = (peer.destination_hash || "").toLowerCase().includes(search); + return matchesAppData || matchesDestinationHash; }); }, selectedPeerChatItems() {