Skip to content

Commit

Permalink
Show leave community action for the followedcommunities (#106)
Browse files Browse the repository at this point in the history
show leave community action for the followedcommunities
  • Loading branch information
trycatchkamal authored Jan 11, 2024
1 parent 8a61123 commit bf83d5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/component/community-card/community-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export class CommunityCardComponent {
self.fetchCreatorProfile();
}
})
}
}else{ // required to set the join/leave based on the list of communities that are joined
this.setIsFollowed();
}
}

onShowInViewPort({ target, visible }: { target: Element; visible: boolean }): void{
Expand Down Expand Up @@ -77,7 +79,7 @@ export class CommunityCardComponent {
if(this.community!== undefined && !this.community?.followersHexKeys){
const followers = await this.ndkProvider.fetchFollowersForCommunity(this.community?.id!)
this.community.followersHexKeys = followers;
}
}
}

popupClosed(evt:any){
Expand Down

0 comments on commit bf83d5c

Please sign in to comment.