From 3d9bdddf31d7bc97ffaa8d050a653416003c49f7 Mon Sep 17 00:00:00 2001 From: SondreB Date: Tue, 31 Jan 2023 16:14:13 +0100 Subject: [PATCH] Fixed the bug I was suppose to fix --- src/app/services/profile.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/services/profile.ts b/src/app/services/profile.ts index 7ed6887..c6a2b93 100644 --- a/src/app/services/profile.ts +++ b/src/app/services/profile.ts @@ -243,8 +243,6 @@ export class ProfileService { this.cache.set(profile.pubkey, profile); await this.db.storage.putProfile(profile); - this.#putFollowingProfile(profile); - this.updateItemIfSelected(profile); } @@ -287,7 +285,6 @@ export class ProfileService { } #putFollowingProfile(profile: NostrProfileDocument) { - debugger; const existingIndex = this.following.findIndex((p) => p.pubkey == profile.pubkey); if (existingIndex === -1) { @@ -319,7 +316,7 @@ export class ProfileService { // Save directly, don't put in cache. await this.db.storage.putProfile(existingProfile); - // this.#putFollowingProfile(existingProfile); + this.#putFollowingProfile(existingProfile); // Queue up to get this profile. this.queueService.enqueProfile(existingProfile.pubkey);