allowing searching peers by destination hash

This commit is contained in:
liamcottle 2024-05-05 02:41:54 +12:00
commit 42768ba7ad

View file

@ -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() {