File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,21 +236,22 @@ export class Server {
236236 }
237237 }
238238
239- if ( uncategorised . size > 0 ) {
240- const channels = [ ...uncategorised ] . map (
241- ( key ) => this . #collection. client . channels . get ( key ) ! ,
242- ) ;
239+ // force Default category for client logic
240+ // if (uncategorised.size > 0) {
241+ const channels = [ ...uncategorised ] . map (
242+ ( key ) => this . #collection. client . channels . get ( key ) ! ,
243+ ) ;
243244
244- if ( defaultCategory ) {
245- defaultCategory . channels = [ ...defaultCategory . channels , ...channels ] ;
246- } else {
247- elements . unshift ( {
248- id : "default" ,
249- title : "Default" ,
250- channels,
251- } ) ;
252- }
245+ if ( defaultCategory ) {
246+ defaultCategory . channels = [ ...defaultCategory . channels , ...channels ] ;
247+ } else {
248+ elements . unshift ( {
249+ id : "default" ,
250+ title : "Default" ,
251+ channels,
252+ } ) ;
253253 }
254+ // }
254255
255256 return elements ;
256257 }
You can’t perform that action at this time.
0 commit comments