Merge branch 'fix-chats-fetch' into 'develop'
Chats: fix fetching when instance is delayed See merge request soapbox-pub/soapbox-fe!777
This commit is contained in:
commit
3dfd066685
|
@ -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 New Issue