From 872e2ba77b2f197cf04e5e5fc15f5585b886974f Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Thu, 26 Nov 2020 10:45:08 -0300 Subject: [PATCH] fix: Thread message flickering while thread parent isn't found --- app/containers/message/index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/containers/message/index.js b/app/containers/message/index.js index d7cbb3c874..0ac1e5a6fa 100644 --- a/app/containers/message/index.js +++ b/app/containers/message/index.js @@ -198,16 +198,11 @@ class MessageContainer extends React.Component { } get isThreadSequential() { - const { - item, previousItem, isThreadRoom - } = this.props; + const { item, isThreadRoom } = this.props; if (isThreadRoom) { return false; } - if (previousItem && item.tmid && ((previousItem.tmid === item.tmid) || (previousItem.id === item.tmid))) { - return true; - } - return false; + return item.tmid; } get isEncrypted() {