@@ -272,9 +272,6 @@ export class Algorithm extends EventEmitter {
272
272
}
273
273
}
274
274
newMap [ tagId ] = allowedRoomsInThisTag ;
275
-
276
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
277
- console . log ( `[DEBUG] ${ newMap [ tagId ] . length } /${ rooms . length } rooms filtered into ${ tagId } ` ) ;
278
275
}
279
276
280
277
const allowedRooms = Object . values ( newMap ) . reduce ( ( rv , v ) => { rv . push ( ...v ) ; return rv ; } , < Room [ ] > [ ] ) ;
@@ -310,9 +307,6 @@ export class Algorithm extends EventEmitter {
310
307
if ( filteredRooms . length > 0 ) {
311
308
this . filteredRooms [ tagId ] = filteredRooms ;
312
309
}
313
-
314
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
315
- console . log ( `[DEBUG] ${ filteredRooms . length } /${ rooms . length } rooms filtered into ${ tagId } ` ) ;
316
310
}
317
311
318
312
protected tryInsertStickyRoomToFilterSet ( rooms : Room [ ] , tagId : TagID ) {
@@ -351,8 +345,6 @@ export class Algorithm extends EventEmitter {
351
345
}
352
346
353
347
if ( ! this . _cachedStickyRooms || ! updatedTag ) {
354
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
355
- console . log ( `Generating clone of cached rooms for sticky room handling` ) ;
356
348
const stickiedTagMap : ITagMap = { } ;
357
349
for ( const tagId of Object . keys ( this . cachedRooms ) ) {
358
350
stickiedTagMap [ tagId ] = this . cachedRooms [ tagId ] . map ( r => r ) ; // shallow clone
@@ -363,8 +355,6 @@ export class Algorithm extends EventEmitter {
363
355
if ( updatedTag ) {
364
356
// Update the tag indicated by the caller, if possible. This is mostly to ensure
365
357
// our cache is up to date.
366
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
367
- console . log ( `Replacing cached sticky rooms for ${ updatedTag } ` ) ;
368
358
this . _cachedStickyRooms [ updatedTag ] = this . cachedRooms [ updatedTag ] . map ( r => r ) ; // shallow clone
369
359
}
370
360
@@ -373,8 +363,6 @@ export class Algorithm extends EventEmitter {
373
363
// we might have updated from the cache is also our sticky room.
374
364
const sticky = this . _stickyRoom ;
375
365
if ( ! updatedTag || updatedTag === sticky . tag ) {
376
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
377
- console . log ( `Inserting sticky room ${ sticky . room . roomId } at position ${ sticky . position } in ${ sticky . tag } ` ) ;
378
366
this . _cachedStickyRooms [ sticky . tag ] . splice ( sticky . position , 0 , sticky . room ) ;
379
367
}
380
368
@@ -466,13 +454,9 @@ export class Algorithm extends EventEmitter {
466
454
// Split out the easy rooms first (leave and invite)
467
455
const memberships = splitRoomsByMembership ( rooms ) ;
468
456
for ( const room of memberships [ EffectiveMembership . Invite ] ) {
469
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
470
- console . log ( `[DEBUG] "${ room . name } " (${ room . roomId } ) is an Invite` ) ;
471
457
newTags [ DefaultTagID . Invite ] . push ( room ) ;
472
458
}
473
459
for ( const room of memberships [ EffectiveMembership . Leave ] ) {
474
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
475
- console . log ( `[DEBUG] "${ room . name } " (${ room . roomId } ) is Historical` ) ;
476
460
newTags [ DefaultTagID . Archived ] . push ( room ) ;
477
461
}
478
462
@@ -483,11 +467,7 @@ export class Algorithm extends EventEmitter {
483
467
let inTag = false ;
484
468
if ( tags . length > 0 ) {
485
469
for ( const tag of tags ) {
486
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
487
- console . log ( `[DEBUG] "${ room . name } " (${ room . roomId } ) is tagged as ${ tag } ` ) ;
488
470
if ( ! isNullOrUndefined ( newTags [ tag ] ) ) {
489
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
490
- console . log ( `[DEBUG] "${ room . name } " (${ room . roomId } ) is tagged with VALID tag ${ tag } ` ) ;
491
471
newTags [ tag ] . push ( room ) ;
492
472
inTag = true ;
493
473
}
@@ -497,9 +477,6 @@ export class Algorithm extends EventEmitter {
497
477
if ( ! inTag ) {
498
478
// TODO: Determine if DM and push there instead: https://github.com/vector-im/riot-web/issues/14236
499
479
newTags [ DefaultTagID . Untagged ] . push ( room ) ;
500
-
501
- // TODO: Remove debug: https://github.com/vector-im/riot-web/issues/14035
502
- console . log ( `[DEBUG] "${ room . name } " (${ room . roomId } ) is Untagged` ) ;
503
480
}
504
481
}
505
482
0 commit comments