Chats: fix fetching when instance is delayed
This commit is contained in:
parent
073db97490
commit
acbf890f35
|
@ -481,6 +481,12 @@ class UI extends React.PureComponent {
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
this.connectStreaming();
|
this.connectStreaming();
|
||||||
|
|
||||||
|
const { dispatch, features } = this.props;
|
||||||
|
|
||||||
|
if (features.chats && !prevProps.features.chats) {
|
||||||
|
dispatch(fetchChats());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
|
Loading…
Reference in New Issue