mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-01-12 22:50:22 +08:00
Fix getTime
This commit is contained in:
committed by
GitHub
parent
8296bd3e03
commit
2c915f0281
@@ -37,8 +37,8 @@ export default class Message extends React.Component {
|
||||
shouldComponentUpdate(nextProps) {
|
||||
const next = nextProps.currentMessage;
|
||||
const current = this.props.currentMessage;
|
||||
const nextCreatedAt = next.createdAt && next.createdAt.getTime();
|
||||
const currentCreatedAt = current.createdAt && current.createdAt.getTime();
|
||||
const nextCreatedAt = next.createdAt && next.createdAt;
|
||||
const currentCreatedAt = current.createdAt && current.createdAt;
|
||||
return (
|
||||
next.send !== current.send ||
|
||||
next.received !== current.received ||
|
||||
|
||||
Reference in New Issue
Block a user