diff options
author | Frankie <frankie.diamond@gmail.com> | 2017-02-02 07:00:41 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2017-02-02 07:00:41 +0800 |
commit | c7b9adbfcbaa51082f193581b80bec4f86996f81 (patch) | |
tree | 204af19a6accbfa3bdf7be243284ee9286863d0a /app | |
parent | a96f892788d715f7fa8995f2b6bd59f42116385c (diff) | |
download | tangerine-wallet-browser-c7b9adbfcbaa51082f193581b80bec4f86996f81.tar tangerine-wallet-browser-c7b9adbfcbaa51082f193581b80bec4f86996f81.tar.gz tangerine-wallet-browser-c7b9adbfcbaa51082f193581b80bec4f86996f81.tar.bz2 tangerine-wallet-browser-c7b9adbfcbaa51082f193581b80bec4f86996f81.tar.lz tangerine-wallet-browser-c7b9adbfcbaa51082f193581b80bec4f86996f81.tar.xz tangerine-wallet-browser-c7b9adbfcbaa51082f193581b80bec4f86996f81.tar.zst tangerine-wallet-browser-c7b9adbfcbaa51082f193581b80bec4f86996f81.zip |
swap out set state for updateState
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/message-manager.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/scripts/lib/message-manager.js b/app/scripts/lib/message-manager.js index 490cd4d1c..4a0017342 100644 --- a/app/scripts/lib/message-manager.js +++ b/app/scripts/lib/message-manager.js @@ -103,10 +103,7 @@ module.exports = class MessageManager extends EventEmitter{ } _saveMsgList (msgList) { - this.emit('updateBadge') - let state = this.memStore.getState() - state.messages = msgList - this.memStore.putState(state) + this.memStore.updateState({ messages: msgList }) } |