aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/scripts/lib/message-manager.js2
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 })
}