From 58da29355b99819bfb56c9dedf6834240461905e Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 30 Apr 2024 23:20:45 +1200 Subject: [PATCH] show existing known peers on page load --- public/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/index.html b/public/index.html index 9866c43..fe5da12 100644 --- a/public/index.html +++ b/public/index.html @@ -321,6 +321,16 @@ } break; } + case 'known_peers': { + for(const known_peer of json.known_peers){ + this.peers[known_peer.destination_hash] = { + destination_hash: known_peer.destination_hash, + app_data: known_peer.app_data, + last_announce_timestamp: known_peer.last_announce_timestamp, + } + } + break; + } case 'lxmf.delivery': { // add inbound message to ui