diff options
author | Frankie <frankie.diamond@gmail.com> | 2017-06-21 06:58:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-21 06:58:03 +0800 |
commit | c09564d78aeaab68495ed7f3ca5cd355edc60cb3 (patch) | |
tree | 14434042fbf55941489fa227e04c8616297ab1a1 | |
parent | fcf14b7aa7b4a7e9d336eea784e395de29cd84fb (diff) | |
parent | b3a6df2dca7b5b9fef883fded020c6bd7a7320fa (diff) | |
download | tangerine-wallet-browser-c09564d78aeaab68495ed7f3ca5cd355edc60cb3.tar tangerine-wallet-browser-c09564d78aeaab68495ed7f3ca5cd355edc60cb3.tar.gz tangerine-wallet-browser-c09564d78aeaab68495ed7f3ca5cd355edc60cb3.tar.bz2 tangerine-wallet-browser-c09564d78aeaab68495ed7f3ca5cd355edc60cb3.tar.lz tangerine-wallet-browser-c09564d78aeaab68495ed7f3ca5cd355edc60cb3.tar.xz tangerine-wallet-browser-c09564d78aeaab68495ed7f3ca5cd355edc60cb3.tar.zst tangerine-wallet-browser-c09564d78aeaab68495ed7f3ca5cd355edc60cb3.zip |
Merge pull request #1644 from MetaMask/i1630-badgefix
Fix badge number to include personal_sign
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | app/scripts/background.js | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d3e86342..c040b630c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Add a warning to JSON file import. - Fix bug where slowly mined txs would sometimes be incorrectly marked as failed. +- Fix bug where badge count did not reflect personal_sign pending messages. ## 3.7.8 2017-6-12 diff --git a/app/scripts/background.js b/app/scripts/background.js index 1dbfb1b98..e8987394f 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -116,13 +116,15 @@ function setupController (initState) { updateBadge() controller.txController.on('updateBadge', updateBadge) controller.messageManager.on('updateBadge', updateBadge) + controller.personalMessageManager.on('updateBadge', updateBadge) // plugin badge text function updateBadge () { var label = '' var unapprovedTxCount = controller.txController.unapprovedTxCount var unapprovedMsgCount = controller.messageManager.unapprovedMsgCount - var count = unapprovedTxCount + unapprovedMsgCount + var unapprovedPersonalMsgs = controller.personalMessageManager.unapprovedPersonalMsgCount + var count = unapprovedTxCount + unapprovedMsgCount + unapprovedPersonalMsgs if (count) { label = String(count) } |