summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-02-02 15:34:22 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-02-04 11:38:57 -0500
commitfd123a6e4a7cfd19ff7ddc7141bc928c27e0a890 (patch)
treece6220654a48475941b08b432a73eac50f7e772f /web/react/components/create_post.jsx
parentf8005744a26b7196f8b652e47bd7c094193dbb30 (diff)
downloadchat-fd123a6e4a7cfd19ff7ddc7141bc928c27e0a890.tar.gz
chat-fd123a6e4a7cfd19ff7ddc7141bc928c27e0a890.tar.bz2
chat-fd123a6e4a7cfd19ff7ddc7141bc928c27e0a890.zip
Changed PostStore to not clear a deleted post's message
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r--web/react/components/create_post.jsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index ed672cd34..3dfc91970 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -40,10 +40,6 @@ const holders = defineMessages({
write: {
id: 'create_post.write',
defaultMessage: 'Write a message...'
- },
- deleteMsg: {
- id: 'create_post.deleteMsg',
- defaultMessage: '(message deleted)'
}
});
@@ -70,7 +66,6 @@ class CreatePost extends React.Component {
this.sendMessage = this.sendMessage.bind(this);
PostStore.clearDraftUploads();
- PostStore.deleteMessage(this.props.intl.formatMessage(holders.deleteMsg));
const draft = this.getCurrentDraft();
@@ -511,4 +506,4 @@ CreatePost.propTypes = {
intl: intlShape.isRequired
};
-export default injectIntl(CreatePost); \ No newline at end of file
+export default injectIntl(CreatePost);