mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Improve display of muted profiles
This commit is contained in:
parent
3e4272b033
commit
be2bc6486d
@ -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();
|
||||
|
@ -3,8 +3,8 @@
|
||||
<div class="event-header">
|
||||
<div class="icon">
|
||||
<a [routerLink]="['/p', pubkey]">
|
||||
<img onerror="this.src='/assets/profile.png'" *ngIf="profile?.status == 1" class="profile-image-follow" [matTooltip]="tooltip" [style.borderColor]="circle?.color" matTooltipPosition="above" [src]="imagePath" />
|
||||
<img onerror="this.src='/assets/profile.png'" *ngIf="profile?.status != 1" class="profile-image" matTooltipPosition="above" [src]="imagePath" />
|
||||
<img onerror="this.src='/assets/profile.png'" *ngIf="profile?.status == 1 || profile?.status == 2" class="profile-image-follow" [matTooltip]="tooltip" [style.borderColor]="circle?.color" matTooltipPosition="above" [src]="imagePath" />
|
||||
<img onerror="this.src='/assets/profile.png'" *ngIf="profile?.status != 1 && profile?.status != 2" class="profile-image" matTooltipPosition="above" [src]="imagePath" />
|
||||
<!-- <app-profile-image [publicKey]="event.pubkey"></app-profile-image> -->
|
||||
</a>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user