@@ -98,7 +98,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
9898 /**
9999 * Contains all the rooms in the active space
100100 */
101- private rooomSkipList ?: RoomSkipList ;
101+ private roomSkipList ?: RoomSkipList ;
102102
103103 /**
104104 * Maps section tags to their corresponding skip lists.
@@ -152,7 +152,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
152152 * Get a list of sorted rooms.
153153 */
154154 public getSortedRooms ( ) : Room [ ] {
155- if ( this . rooomSkipList ?. initialized ) return Array . from ( this . rooomSkipList ) ;
155+ if ( this . roomSkipList ?. initialized ) return Array . from ( this . roomSkipList ) ;
156156 else return [ ] ;
157157 }
158158
@@ -169,7 +169,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
169169 const areSectionsEnabled = SettingsStore . getValue ( "feature_room_list_sections" ) ;
170170 const sections = areSectionsEnabled
171171 ? this . getSections ( filterKeys )
172- : [ { tag : CHATS_TAG , rooms : Array . from ( this . rooomSkipList ?. getRoomsInActiveSpace ( filterKeys ) ?? [ ] ) } ] ;
172+ : [ { tag : CHATS_TAG , rooms : Array . from ( this . roomSkipList ?. getRoomsInActiveSpace ( filterKeys ) ?? [ ] ) } ] ;
173173
174174 return {
175175 spaceId : spaceId ,
@@ -185,7 +185,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
185185 public resort ( algorithm : SortingAlgorithm ) : void {
186186 if ( ! this . areSkipListsInitialized ( ) ) throw new Error ( "Cannot resort room list before skip list is created." ) ;
187187 if ( ! this . matrixClient ) throw new Error ( "Cannot resort room list without matrix client." ) ;
188- if ( this . rooomSkipList ! . activeSortAlgorithm === algorithm ) return ;
188+ if ( this . roomSkipList ! . activeSortAlgorithm === algorithm ) return ;
189189 const sorter = this . getSorterFromSortingAlgorithm ( algorithm , this . matrixClient . getSafeUserId ( ) ) ;
190190 this . runOnAllList ( ( list ) => list . useNewSorter ( sorter , this . getRooms ( ) ) ) ;
191191 this . emit ( LISTS_UPDATE_EVENT ) ;
@@ -196,7 +196,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
196196 * Currently active sorting algorithm if the store is ready or undefined otherwise.
197197 */
198198 public get activeSortAlgorithm ( ) : SortingAlgorithm | undefined {
199- return this . rooomSkipList ?. activeSortAlgorithm ;
199+ return this . roomSkipList ?. activeSortAlgorithm ;
200200 }
201201
202202 protected async onReady ( ) : Promise < any > {
@@ -214,7 +214,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
214214
215215 protected async onNotReady ( ) : Promise < void > {
216216 this . roomSkipListByTag . clear ( ) ;
217- this . rooomSkipList = undefined ;
217+ this . roomSkipList = undefined ;
218218 }
219219
220220 protected async onAction ( payload : ActionPayload ) : Promise < void > {
@@ -456,7 +456,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
456456 this . roomSkipListByTag . set ( tag , new RoomSkipList ( sorter , [ filter , ...filters ] ) ) ;
457457 } ) ;
458458
459- this . rooomSkipList = new RoomSkipList ( sorter , filters ) ;
459+ this . roomSkipList = new RoomSkipList ( sorter , filters ) ;
460460 }
461461
462462 /**
@@ -465,7 +465,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
465465 */
466466 private runOnAllList ( cb : ( list : RoomSkipList ) => void ) : void {
467467 this . roomSkipListByTag . forEach ( ( skipList ) => cb ( skipList ) ) ;
468- if ( this . rooomSkipList ) cb ( this . rooomSkipList ) ;
468+ if ( this . roomSkipList ) cb ( this . roomSkipList ) ;
469469 }
470470
471471 /**
@@ -474,7 +474,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
474474 private areSkipListsInitialized ( ) : boolean {
475475 return (
476476 this . sortedTags . every ( ( tag ) => this . roomSkipListByTag . get ( tag ) ?. initialized ) &&
477- Boolean ( this . rooomSkipList ?. initialized )
477+ Boolean ( this . roomSkipList ?. initialized )
478478 ) ;
479479 }
480480
0 commit comments