mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 19:01:31 +03:00
Search through the list of unfiltered rooms rather than the rooms in the state which are already filtered by the search text
This commit is contained in:
parent
d5e9d5306a
commit
176c7c32da
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
|
|||
room = this.state.rooms && this.state.rooms[0];
|
||||
} else {
|
||||
// find the first room with a count of the same colour as the badge count
|
||||
room = this.state.rooms.find((r: Room) => {
|
||||
room = RoomListStore.instance.unfilteredLists[this.props.tagId].find((r: Room) => {
|
||||
const notifState = this.notificationState.getForRoom(r);
|
||||
return notifState.count > 0 && notifState.color === this.notificationState.color;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue