bug fix: archive view does not render
This commit is contained in:
@@ -58,7 +58,7 @@ export default class ContactsView extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps, prevState) {
|
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);
|
const newState = ContactsView.deriveStateFromProps(this.props);
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
if (newState.unreadThreads != prevState.unreadThreads) {
|
if (newState.unreadThreads != prevState.unreadThreads) {
|
||||||
|
|||||||
+2
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user