diff --git a/src/app/services/profile.ts b/src/app/services/profile.ts index 2cce794..02be54c 100644 --- a/src/app/services/profile.ts +++ b/src/app/services/profile.ts @@ -252,9 +252,12 @@ export class ProfileService { const index = this.following.findIndex((f) => f.pubkey == profile.pubkey); if (profile.circle != null) { - if (index == -1) { + if (profile.status == 1 && index == -1) { this.following.push(profile); this.#updated(); + } else if (profile.status == 2 && index > -1) { + this.following.splice(index, 1); + this.#updated(); } else { this.following[index] = profile; this.#updated(); diff --git a/src/app/shared/event-header/event-header.html b/src/app/shared/event-header/event-header.html index e61858f..bd36b64 100644 --- a/src/app/shared/event-header/event-header.html +++ b/src/app/shared/event-header/event-header.html @@ -3,8 +3,8 @@
- - + +