mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Bug fixes
This commit is contained in:
parent
dcd51b5be3
commit
0904ae8c7a
2 changed files with 2 additions and 13 deletions
|
@ -58,7 +58,7 @@ export default class DecoratedRoomAvatar extends React.PureComponent<IProps, ISt
|
|||
|
||||
return <div className="mx_DecoratedRoomAvatar">
|
||||
<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}
|
||||
</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
|
||||
// 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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue