From 15be498e4b9839319660eb5f12df61e39eacb07d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 20 Jan 2025 16:57:22 -0500 Subject: [PATCH] ssb: Don't show connections in various states of disconnectedness in the sidebar. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-news.js | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 0566d638..6c272ef9 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&J6o2XRWWAirhnQbEa6Pi0QvAex6jTH1o23npX7x82aY=.sha256" + "previous": "&ZKixAk7qZ3OfnjvCoyT1MC7qYVpUz0ngaAozr11xihs=.sha256" } diff --git a/apps/ssb/tf-tab-news.js b/apps/ssb/tf-tab-news.js index 132438e5..d33b9af2 100644 --- a/apps/ssb/tf-tab-news.js +++ b/apps/ssb/tf-tab-news.js @@ -216,16 +216,18 @@ class TfTabNewsElement extends LitElement { )}

Connections

- ${this.connections.map( - (x) => html` - - ` - )} + ${this.connections + .filter((x) => x.id && !x.destroy_reason) + .map( + (x) => html` + + ` + )}

Suggested Follows

${this.suggested_follows().map( (x) => html`