fix broken links on non-owned channels
This commit is contained in:
@@ -78,6 +78,10 @@ export class ChannelListComponent implements OnInit {
|
||||
return resolved?.displayName || ownerId;
|
||||
}
|
||||
|
||||
isOwned(channel: ChannelWithSubscription): boolean {
|
||||
return channel.owner_user_id === this.authService.getUserId();
|
||||
}
|
||||
|
||||
viewChannel(channel: ChannelWithSubscription): void {
|
||||
this.router.navigate(['/channels', channel.channel_id]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user