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

Commit 5756256

Browse files
authored
Merge pull request #5331 from Transfusion/invisible_rooms_notif_badge
Search through the list of unfiltered rooms rather than the rooms in the state which are already filtered by the search text
2 parents 9ca448e + 176c7c3 commit 5756256

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
@@ -422,7 +422,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
422422
room = this.state.rooms && this.state.rooms[0];
423423
} else {
424424
// find the first room with a count of the same colour as the badge count
425-
room = this.state.rooms.find((r: Room) => {
425+
room = RoomListStore.instance.unfilteredLists[this.props.tagId].find((r: Room) => {
426426
const notifState = this.notificationState.getForRoom(r);
427427
return notifState.count > 0 && notifState.color === this.notificationState.color;
428428
});

0 commit comments

Comments
 (0)