diff options
author | Frankie <frankie.diamond@gmail.com> | 2017-02-02 07:12:15 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2017-02-02 07:12:15 +0800 |
commit | 10ce2a781f0e1ea85996630b7925c7de4b162e16 (patch) | |
tree | 5015ee26021f00e4a4d36eca8d5466d539a65de2 | |
parent | d93708b55394b1408ecf5ff4a5e90f37b666205d (diff) | |
download | tangerine-wallet-browser-10ce2a781f0e1ea85996630b7925c7de4b162e16.tar tangerine-wallet-browser-10ce2a781f0e1ea85996630b7925c7de4b162e16.tar.gz tangerine-wallet-browser-10ce2a781f0e1ea85996630b7925c7de4b162e16.tar.bz2 tangerine-wallet-browser-10ce2a781f0e1ea85996630b7925c7de4b162e16.tar.lz tangerine-wallet-browser-10ce2a781f0e1ea85996630b7925c7de4b162e16.tar.xz tangerine-wallet-browser-10ce2a781f0e1ea85996630b7925c7de4b162e16.tar.zst tangerine-wallet-browser-10ce2a781f0e1ea85996630b7925c7de4b162e16.zip |
emit a update badge
-rw-r--r-- | app/scripts/lib/message-manager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/message-manager.js b/app/scripts/lib/message-manager.js index 30eff12d3..18bf54ae1 100644 --- a/app/scripts/lib/message-manager.js +++ b/app/scripts/lib/message-manager.js @@ -91,7 +91,6 @@ module.exports = class MessageManager extends EventEmitter{ let msg = this.getMsg(msgId) if (msg) msg.status = status this._updateMsg(msg) - this.emit('updateBadge') } _updateMsg (msg) { @@ -104,6 +103,7 @@ module.exports = class MessageManager extends EventEmitter{ } _saveMsgList (msgList) { + this.emit('updateBadge') this.memStore.updateState({ messages: msgList }) } |