mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Fixed the bug I was suppose to fix
This commit is contained in:
parent
d622f27095
commit
3d9bdddf31
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user