diff options
author | David Lu <david.lu@hotmail.com> | 2016-06-06 10:01:35 -0700 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-06-06 13:01:35 -0400 |
commit | 2c42294bbcab3cd5cfdce9604e5872fe4a12e538 (patch) | |
tree | 60b20100acbd0efd6ed6293d88b222ef3f904088 /webapp/components/edit_post_modal.jsx | |
parent | 96e8fc165fab315b48f55e9ca54e689b34119967 (diff) | |
download | chat-2c42294bbcab3cd5cfdce9604e5872fe4a12e538.tar.gz chat-2c42294bbcab3cd5cfdce9604e5872fe4a12e538.tar.bz2 chat-2c42294bbcab3cd5cfdce9604e5872fe4a12e538.zip |
PLT-3101 Added message history (#3205)
* Added message history
* Minor logical changes
* Fixed indexes resetting
* Fixed double messages
* Fixed resetting main history when RHS opened
Diffstat (limited to 'webapp/components/edit_post_modal.jsx')
-rw-r--r-- | webapp/components/edit_post_modal.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/components/edit_post_modal.jsx b/webapp/components/edit_post_modal.jsx index ac82cf036..0c7b8d672 100644 --- a/webapp/components/edit_post_modal.jsx +++ b/webapp/components/edit_post_modal.jsx @@ -9,6 +9,7 @@ import * as GlobalActions from 'actions/global_actions.jsx'; import Textbox from './textbox.jsx'; import BrowserStore from 'stores/browser_store.jsx'; import PostStore from 'stores/post_store.jsx'; +import MessageHistoryStore from 'stores/message_history_store.jsx'; import PreferenceStore from 'stores/preference_store.jsx'; import Constants from 'utils/constants.jsx'; @@ -49,6 +50,8 @@ class EditPostModal extends React.Component { return; } + MessageHistoryStore.storeMessageInHistory(updatedPost.message); + if (updatedPost.message.length === 0) { var tempState = this.state; Reflect.deleteProperty(tempState, 'editText'); |