summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-11-01 08:34:33 -0400
committerChristopher Speller <crspeller@gmail.com>2016-11-01 08:34:33 -0400
commit1d4f42acd99d707f114bd77c4085f4324b4a5ee2 (patch)
treef2da0db379bd204fb91712082c928dccc3120f76 /webapp
parentdb80a819f76d5457880a078ec70b1e05fbb1df60 (diff)
downloadchat-1d4f42acd99d707f114bd77c4085f4324b4a5ee2.tar.gz
chat-1d4f42acd99d707f114bd77c4085f4324b4a5ee2.tar.bz2
chat-1d4f42acd99d707f114bd77c4085f4324b4a5ee2.zip
Fixed comment drafts to use the same naming convention as post drafts (#4385)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/create_comment.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index df91c72ad..905e5258b 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -184,7 +184,7 @@ export default class CreateComment extends React.Component {
const messageText = e.target.value;
const draft = PostStore.getCommentDraft(this.props.rootId);
- draft.message = messageText;
+ draft.messageText = messageText;
PostStore.storeCommentDraft(this.props.rootId, draft);
$('.post-right__scroll').parent().scrollTop($('.post-right__scroll')[0].scrollHeight);
@@ -308,7 +308,7 @@ export default class CreateComment extends React.Component {
componentWillReceiveProps(newProps) {
if (newProps.rootId !== this.props.rootId) {
const draft = PostStore.getCommentDraft(newProps.rootId);
- this.setState({messageText: draft.message, uploadsInProgress: draft.uploadsInProgress, fileInfos: draft.fileInfos});
+ this.setState({messageText: draft.messageText, uploadsInProgress: draft.uploadsInProgress, fileInfos: draft.fileInfos});
}
}