Merge pull request #3303 from urbit/la/msg-key

chat: add key to outer component to prevent re-render
This commit is contained in:
matildepark 2020-08-12 16:39:22 -04:00 committed by GitHub
commit 53f4ad4060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,6 +172,7 @@ export class ChatWindow extends Component {
/>
{ messages.map((msg, i) => (
<ChatMessage
key={msg.uid}
unreadRef={this.unreadReference}
isLastUnread={
props.unreadCount > 0 &&