summaryrefslogtreecommitdiffstats
path: root/web/react/stores/post_store.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/stores/post_store.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/stores/post_store.jsx')
-rw-r--r--web/react/stores/post_store.jsx4
1 files changed, 0 insertions, 4 deletions
diff --git a/web/react/stores/post_store.jsx b/web/react/stores/post_store.jsx
index 93e565403..a504fef89 100644
--- a/web/react/stores/post_store.jsx
+++ b/web/react/stores/post_store.jsx
@@ -341,7 +341,6 @@ class PostStoreClass extends EventEmitter {
if (post.id in postList.posts) {
// make sure to copy the post so that component state changes work properly
postList.posts[post.id] = Object.assign({}, post, {
- message: this.delete_message, // TODO
state: Constants.POST_DELETED,
filenames: [],
ephemeral: true
@@ -534,9 +533,6 @@ class PostStoreClass extends EventEmitter {
return commentCount;
}
- deleteMessage(msg) {
- this.delete_message = msg;
- }
}
var PostStore = new PostStoreClass();