Chats: fix fetching when instance is delayed

merge-requests/777/head
Alex Gleason 3 years ago
parent 073db97490
commit acbf890f35
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -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() {

Loading…
Cancel
Save