Skip to content

Commit

Permalink
fix: Invalid message draft (RocketChat#29474)
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal authored Jun 7, 2023
1 parent c9279bf commit 066cf25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quiet-kids-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

Fixed invalid message draft issue.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ const ComposerMessage = ({ rid, tmid, readOnly, onSend, ...props }: ComposerMess
);
}

return <MessageBox readOnly={readOnly ?? false} rid={rid} tmid={tmid} {...composerProps} showFormattingTips={true} {...props} />;
return (
<MessageBox readOnly={readOnly ?? false} key={rid} rid={rid} tmid={tmid} {...composerProps} showFormattingTips={true} {...props} />
);
};

export default memo(ComposerMessage);

0 comments on commit 066cf25

Please sign in to comment.