From 34a30214c243ef066bd3426aeaef8b20fd60bd6b Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 29 Nov 2022 15:34:16 -0300 Subject: [PATCH] Cleanup message --- app/containers/message/index.tsx | 46 -------------------------------- 1 file changed, 46 deletions(-) diff --git a/app/containers/message/index.tsx b/app/containers/message/index.tsx index ca4686ff6..bac168693 100644 --- a/app/containers/message/index.tsx +++ b/app/containers/message/index.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { Keyboard } from 'react-native'; -import { Subscription } from 'rxjs'; import Message from './Message'; import MessageContext from './Context'; @@ -26,51 +25,6 @@ class MessageContainer extends React.Component { - // // console.log('🚀 ~ file: index.tsx ~ line 90 ~ MessageContainer ~ componentDidMount ~ msg', msg); - // if (!isFirstRender) { - // this.forceUpdate(); - // } - // isFirstRender = false; - // }); - // } - // } - - // shouldComponentUpdate(nextProps: IMessageContainerProps, nextState: TAnyMessageContainerState) { - // const { isManualUnignored } = this.state; - // const { threadBadgeColor, isIgnored, highlighted, previousItem } = this.props; - // if (nextProps.highlighted !== highlighted) { - // return true; - // } - // if (nextProps.threadBadgeColor !== threadBadgeColor) { - // return true; - // } - // if (nextProps.isIgnored !== isIgnored) { - // return true; - // } - // if (nextState.isManualUnignored !== isManualUnignored) { - // return true; - // } - // if (nextProps.previousItem?._id !== previousItem?._id) { - // return true; - // } - // return false; - // } - - // componentWillUnmount() { - // if (this.subscription && this.subscription.unsubscribe) { - // this.subscription.unsubscribe(); - // } - // } - onPressAction = () => { const { closeEmojiAndAction } = this.props;