Changed PostStore to not clear a deleted post's message

Этот коммит содержится в:
hmhealey
2016-02-02 15:34:22 -05:00
родитель f8005744a2
Коммит fd123a6e4a
5 изменённых файлов: 27 добавлений и 22 удалений

Просмотреть файл

@@ -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();