Chats: fix fetching when instance is delayed

This commit is contained in:
Alex Gleason 2021-09-22 11:15:05 -05:00
parent 073db97490
commit acbf890f35
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -481,6 +481,12 @@ class UI extends React.PureComponent {
componentDidUpdate(prevProps) {
this.connectStreaming();
const { dispatch, features } = this.props;
if (features.chats && !prevProps.features.chats) {
dispatch(fetchChats());
}
}
componentWillUnmount() {