ChatWindow: fix unnecessary rerenders
@@ -171,8 +171,10 @@ export default class ChatWindow extends Component<
}
setActive = () => {
+ if(this.state.idle) {
this.setState({ idle: false });
}
+ }
fetchMessages = async (newer: boolean): Promise<boolean> => {
const { api, station, graph } = this.props;
