Bug fixes
This commit is contained in:
@@ -524,7 +524,7 @@ export class Algorithm extends EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
private getTagsForRoom(room: Room): TagID[] {
|
||||
public getTagsForRoom(room: Room): TagID[] {
|
||||
// XXX: This duplicates a lot of logic from setKnownRooms above, but has a slightly
|
||||
// different use case and therefore different performance curve
|
||||
|
||||
@@ -670,15 +670,4 @@ export class Algorithm extends EventEmitter {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the tags for a given room as known by the algorithm. May be null or
|
||||
* empty.
|
||||
* @param room The room to get known tags for.
|
||||
* @returns The known tags for the room.
|
||||
*/
|
||||
public getTagsForRoom(room: Room): TagID[] {
|
||||
if (!room) throw new Error("A room is required");
|
||||
return this.roomIdsToTags[room.roomId];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user