Chats: fix fetching when instance is delayed
This commit is contained in:
parent
073db97490
commit
acbf890f35
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue