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:
Alex Gleason 2021-09-22 16:17:08 +00:00
commit 3dfd066685
1 changed files with 6 additions and 0 deletions

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