[FIX] Thread message flickering while thread parent isn't found (#2676)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
3bc8161bc8
commit
13c3bc3c1b
|
@ -217,16 +217,11 @@ class MessageContainer extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
get isThreadSequential() {
|
get isThreadSequential() {
|
||||||
const {
|
const { item, isThreadRoom } = this.props;
|
||||||
item, previousItem, isThreadRoom
|
|
||||||
} = this.props;
|
|
||||||
if (isThreadRoom) {
|
if (isThreadRoom) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (previousItem && item.tmid && ((previousItem.tmid === item.tmid) || (previousItem.id === item.tmid))) {
|
return item.tmid;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get isEncrypted() {
|
get isEncrypted() {
|
||||||
|
|
Loading…
Reference in New Issue