Do not display the favorites category when it has no channels (#6913)

This commit is contained in:
Elias Nahum
2022-12-29 06:17:00 +02:00
committed by GitHub
parent 5feb690ebc
commit 5cc30c5e5b
3 changed files with 8 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ declare class CategoryModel extends Model {
@lazy myChannels: Query<MyChannelModel>;
/** hasChannels : Whether the category has any channels */
observeHasChannels(canViewArchived: boolean): Observable<boolean>;
observeHasChannels(canViewArchived: boolean, channelId: string): Observable<boolean>;
/** toCategoryWithChannels returns a map of the Category with an array of ordered channel ids */
toCategoryWithChannels(): Promise<CategoryWithChannels>;