ssb: Don't list broadcasts for identities to which we are already connected.

This commit is contained in:
Cory McWilliams 2024-11-13 19:23:04 -05:00
parent 50089f72c6
commit 5bdf970c10
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&olI6SRBA/dThYusGLGhZ9T2nFKyGB9r+/kb7bJxa4gg=.sha256"
"previous": "&tL1A9Kt6d8wGwBFPAq5V5GtMqOatVCzuLIG6wwJhdyI=.sha256"
}

View File

@ -227,6 +227,7 @@ class TfTabConnectionsElement extends LitElement {
<ul class="w3-ul w3-border">
${this.broadcasts
.filter((x) => x.address)
.filter((x) => self.connections.map(c => c.id).indexOf(x.pubkey) == -1)
.map((x) => self.render_broadcast(x))}
</ul>
<h2>Connections</h2>