[FIX] Messages attributed to wrong user (#4598)
This commit is contained in:
parent
4d62874a9f
commit
76c4ce74cd
|
@ -93,7 +93,7 @@ class MessageContainer extends React.Component<IMessageContainerProps, IMessageC
|
||||||
|
|
||||||
shouldComponentUpdate(nextProps: IMessageContainerProps, nextState: IMessageContainerState) {
|
shouldComponentUpdate(nextProps: IMessageContainerProps, nextState: IMessageContainerState) {
|
||||||
const { isManualUnignored } = this.state;
|
const { isManualUnignored } = this.state;
|
||||||
const { threadBadgeColor, isIgnored, highlighted } = this.props;
|
const { threadBadgeColor, isIgnored, highlighted, previousItem } = this.props;
|
||||||
if (nextProps.highlighted !== highlighted) {
|
if (nextProps.highlighted !== highlighted) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,9 @@ class MessageContainer extends React.Component<IMessageContainerProps, IMessageC
|
||||||
if (nextState.isManualUnignored !== isManualUnignored) {
|
if (nextState.isManualUnignored !== isManualUnignored) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (nextProps.previousItem?._id !== previousItem?._id) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue