Merge branch 'fix-chats-fetch' into 'develop'

Chats: fix fetching when instance is delayed

See merge request soapbox-pub/soapbox-fe!777
v1.x.x
Alex Gleason 2021-09-22 16:17:08 +00:00
commit 3dfd066685
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

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