You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Remove even more tags from the notification state fetching for a room
This commit is contained in:
@@ -44,7 +44,7 @@ export default class DecoratedRoomAvatar extends React.PureComponent<IProps, ISt
|
|||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
notificationState: RoomNotificationStateStore.instance.getRoomState(this.props.room, this.props.tag),
|
notificationState: RoomNotificationStateStore.instance.getRoomState(this.props.room),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export default class RoomTile extends React.Component<IProps, IState> {
|
|||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
hover: false,
|
hover: false,
|
||||||
notificationState: RoomNotificationStateStore.instance.getRoomState(this.props.room, this.props.tag),
|
notificationState: RoomNotificationStateStore.instance.getRoomState(this.props.room),
|
||||||
selected: ActiveRoomObserver.activeRoomId === this.props.room.roomId,
|
selected: ActiveRoomObserver.activeRoomId === this.props.room.roomId,
|
||||||
notificationsMenuPosition: null,
|
notificationsMenuPosition: null,
|
||||||
generalMenuPosition: null,
|
generalMenuPosition: null,
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
|
|||||||
private getRoomCategory(room: Room): NotificationColor {
|
private getRoomCategory(room: Room): NotificationColor {
|
||||||
// It's fine for us to call this a lot because it's cached, and we shouldn't be
|
// It's fine for us to call this a lot because it's cached, and we shouldn't be
|
||||||
// wasting anything by doing so as the store holds single references
|
// wasting anything by doing so as the store holds single references
|
||||||
const state = RoomNotificationStateStore.instance.getRoomState(room, this.tagId);
|
const state = RoomNotificationStateStore.instance.getRoomState(room);
|
||||||
return state.color;
|
return state.color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user