chat: add key to outer component to prevent re-render

This commit is contained in:
Logan Allen 2020-08-12 12:11:18 -07:00
parent 97bbac159c
commit 6b375051e3

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 &&