Skip to content
Permalink
Browse files

fix duplicate day rendering (#1255)

  • Loading branch information...
pedrogarciyalopez authored and xcarpentier committed Jun 11, 2019
1 parent 45ac401 commit 8180d602e442203baf9b0770068c1b9ddb362e38
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Message.tsx
@@ -84,8 +84,8 @@ export default class Message extends React.Component<MessageProps> {
shouldComponentUpdate(nextProps: MessageProps) {
const next = nextProps.currentMessage!
const current = this.props.currentMessage!
const { nextMessage } = this.props
const nextPropsMessage = nextProps.nextMessage
const { previousMessage } = this.props;
const nextPropsPreviousMessage = nextProps.previousMessage;
return (
next.sent !== current.sent ||
next.received !== current.received ||
@@ -95,7 +95,7 @@ export default class Message extends React.Component<MessageProps> {
next.image !== current.image ||
next.video !== current.video ||
next.audio !== current.audio ||
nextMessage !== nextPropsMessage
previousMessage !== nextPropsPreviousMessage
)
}

0 comments on commit 8180d60

Please sign in to comment.
You can’t perform that action at this time.