aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-02-02 07:00:41 +0800
committerFrankie <frankie.diamond@gmail.com>2017-02-02 07:00:41 +0800
commitc7b9adbfcbaa51082f193581b80bec4f86996f81 (patch)
tree204af19a6accbfa3bdf7be243284ee9286863d0a /app
parenta96f892788d715f7fa8995f2b6bd59f42116385c (diff)
downloadtangerine-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.js5
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 })
}