diff --git a/apps/ssb.json b/apps/ssb.json
index 5df0743d..fb77ab2e 100644
--- a/apps/ssb.json
+++ b/apps/ssb.json
@@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "đ",
- "previous": "&vEaOZjrNb0u9rhNqrQ8eU9TlOFlo4HsgW6hbI7VdIT0=.sha256"
+ "previous": "&raSj7ozmSDNGmB6TtjDk7oOiTc33ZN+RrBMASJ2F4cA=.sha256"
}
diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js
index 911fb5ec..37429065 100644
--- a/apps/ssb/tf-app.js
+++ b/apps/ssb/tf-app.js
@@ -264,6 +264,7 @@ class TfElement extends LitElement {
hash=${this.hash}
.unread=${this.unread}
@refresh=${() => (this.unread = [])}
+ ?loading=${this.loading}
>
`;
} else if (this.tab === 'connections') {
diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js
index f26ccefe..f85d5b0d 100644
--- a/apps/ssb/tf-tab-connections.js
+++ b/apps/ssb/tf-tab-connections.js
@@ -7,9 +7,11 @@ 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},
+ server_identity: {type: String},
};
}
@@ -20,15 +22,22 @@ 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 || [];
});
tfrpc.rpc.getStoredConnections().then(function (connections) {
self.stored_connections = connections || [];
});
+ tfrpc.rpc.getServerIdentity().then(function (identity) {
+ self.server_identity = identity;
+ });
}
render_connection_summary(connection) {
@@ -184,6 +193,12 @@ 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}
`
)}
diff --git a/apps/ssb/tf-tab-news.js b/apps/ssb/tf-tab-news.js
index 0a6608bd..bab29339 100644
--- a/apps/ssb/tf-tab-news.js
+++ b/apps/ssb/tf-tab-news.js
@@ -12,6 +12,7 @@ class TfTabNewsElement extends LitElement {
following: {type: Array},
drafts: {type: Object},
expanded: {type: Object},
+ loading: {type: Boolean},
};
}
@@ -113,6 +114,15 @@ class TfTabNewsElement extends LitElement {
.users=${this.users}
>`
: undefined;
+ let edit_profile;
+ if (!this.loading &&
+ this.users[this.whoami]?.name === undefined &&
+ this.hash.substring(1) != this.whoami) {
+ edit_profile = html`
+
+ âšī¸ Follow your identity link âī¸ above to edit your profile and set your name.
+
`;
+ }
return html`