Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 176c7c3

Browse files
committed
Search through the list of unfiltered rooms rather than the rooms in the state which are already filtered by the search text
1 parent d5e9d53 commit 176c7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/rooms/RoomSublist.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
420420
room = this.state.rooms && this.state.rooms[0];
421421
} else {
422422
// find the first room with a count of the same colour as the badge count
423-
room = this.state.rooms.find((r: Room) => {
423+
room = RoomListStore.instance.unfilteredLists[this.props.tagId].find((r: Room) => {
424424
const notifState = this.notificationState.getForRoom(r);
425425
return notifState.count > 0 && notifState.color === this.notificationState.color;
426426
});

0 commit comments

Comments
 (0)