From 13c3bc3c1b2a67492f9c50ccaa805ead1b4408e2 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Tue, 1 Dec 2020 09:59:59 -0300 Subject: [PATCH] [FIX] Thread message flickering while thread parent isn't found (#2676) Co-authored-by: Diego Mello --- 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 e1406adbd..b4339ff0e 100644 --- a/app/containers/message/index.js +++ b/app/containers/message/index.js @@ -217,16 +217,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() {