From 427ca3f26531e2139a2ba9ff815612e169f78fa5 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 11 May 2024 09:58:24 -0400 Subject: [PATCH] Indicate both the server account and your own accounts in the ssb connections tab. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-connections.js | 12 +++++++++++- deps/libbacktrace | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 6148c1ef..cd6d2c70 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&sqnidhPsKb45FDw4m0/ZeDQgX3qxqw9MReaVP11Xk2M=.sha256" + "previous": "&RUQvOmseWyN6C+Ei+rhhWzgQSukoM18VcMeKeo5AxXw=.sha256" } diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index 468f687c..4b23dad6 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -7,6 +7,7 @@ class TfTabConnectionsElement extends LitElement { return { broadcasts: {type: Array}, identities: {type: Array}, + my_identities: {type: Array}, connections: {type: Array}, stored_connections: {type: Array}, users: {type: Object}, @@ -21,9 +22,13 @@ class TfTabConnectionsElement extends LitElement { let self = this; this.broadcasts = []; this.identities = []; + this.my_identities = []; this.connections = []; this.stored_connections = []; this.users = {}; + tfrpc.rpc.getIdentities().then(function (identities) { + self.my_identities = identities || []; + }); tfrpc.rpc.getAllIdentities().then(function (identities) { self.identities = identities || []; }); @@ -182,8 +187,13 @@ class TfTabConnectionsElement extends LitElement { ${this.identities.map( (x) => html`
  • + ${x == this.server_identity ? + html`πŸ–₯ local server` : + undefined} + ${this.my_identities.indexOf(x) != -1 ? + html`😎 you` : + undefined} - ${x == this.server_identity ? html`- πŸ–₯local server` : undefined}
  • ` )} diff --git a/deps/libbacktrace b/deps/libbacktrace index 7ead8c1e..11427f31 160000 --- a/deps/libbacktrace +++ b/deps/libbacktrace @@ -1 +1 @@ -Subproject commit 7ead8c1ea2f4aeafe9c5b9ef8a9461a9ba781aa8 +Subproject commit 11427f31a64b11583fec94b4c2a265c7dafb1ab3