bug fix: archive view does not render

This commit is contained in:
or-else
2019-09-24 19:26:59 +03:00
parent f9a29ed3ef
commit 205ca95217
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export default class ContactsView extends React.Component {
}
componentDidUpdate(prevProps, prevState) {
if (prevProps.chatList != this.props.chatList) {
if (prevProps.chatList != this.props.chatList || prevProps.archive != this.props.archive) {
const newState = ContactsView.deriveStateFromProps(this.props);
this.setState(newState);
if (newState.unreadThreads != prevState.unreadThreads) {
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long