Refactor: Prepare Message function props for conversation scope

This commit is contained in:
Scott Nonnenberg
2019-03-15 15:18:00 -07:00
parent 7e58594038
commit d342b23cbc
13 changed files with 300 additions and 256 deletions

View File

@@ -59,7 +59,9 @@ export class MessageDetail extends React.Component<Props> {
return (
<div className="module-message-detail__delete-button-container">
<button
onClick={message.onDelete}
onClick={() => {
message.deleteMessage(message.id);
}}
className="module-message-detail__delete-button"
>
{i18n('deleteThisMessage')}