From 1974ed1c03afe465ab595d31d8a7ee607867c6be Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 29 Dec 2024 13:41:57 -0500 Subject: [PATCH] ssb: We don't have to wait for channel status to finish load. --- apps/ssb.json | 2 +- apps/ssb/tf-app.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 08adc1d9..71647712 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&yapJ13Gt1EBAoNfcjqen0o7c4wSjjRSQSxZFFtPDHps=.sha256" + "previous": "&VAZXXBIeJH6zCSc6o4Za+RetRRZe41VKow+fBrYAIkc=.sha256" } diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js index e2e8faa5..f13ad5ce 100644 --- a/apps/ssb/tf-app.js +++ b/apps/ssb/tf-app.js @@ -379,7 +379,7 @@ class TfElement extends LitElement { }; by_count.push({count: v.of, id: id}); } - let channels_latest = this.load_channels_latest(Object.keys(following)); + this.load_channels_latest(Object.keys(following)); this.channels_unread = JSON.parse( (await tfrpc.rpc.databaseGet('unread')) ?? '{}' ); @@ -393,7 +393,6 @@ class TfElement extends LitElement { 'users' ); start_time = new Date(); - await channels_latest; this.following = Object.keys(following); this.users = users; console.log(`load finished ${whoami} => ${this.whoami}`);