[FIX] Thread message flickering while thread parent isn't found (#2676)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-12-01 09:59:59 -03:00 committed by GitHub
parent 3bc8161bc8
commit 13c3bc3c1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

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