Bug fixes
parent
dcd51b5be3
commit
0904ae8c7a
|
@ -58,7 +58,7 @@ export default class DecoratedRoomAvatar extends React.PureComponent<IProps, ISt
|
||||||
|
|
||||||
return <div className="mx_DecoratedRoomAvatar">
|
return <div className="mx_DecoratedRoomAvatar">
|
||||||
<RoomAvatar room={this.props.room} width={this.props.avatarSize} height={this.props.avatarSize} />
|
<RoomAvatar room={this.props.room} width={this.props.avatarSize} height={this.props.avatarSize} />
|
||||||
<RoomTileIcon room={this.props.room} tag={this.props.tag} isBlah={true}/>
|
<RoomTileIcon room={this.props.room} tag={this.props.tag} />
|
||||||
{badge}
|
{badge}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
// XXX: This duplicates a lot of logic from setKnownRooms above, but has a slightly
|
||||||
// different use case and therefore different performance curve
|
// different use case and therefore different performance curve
|
||||||
|
|
||||||
|
@ -670,15 +670,4 @@ export class Algorithm extends EventEmitter {
|
||||||
|
|
||||||
return true;
|
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];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue