aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-25 06:58:08 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-25 06:58:08 +0800
commitabb5b2013d0a1f4201537413aab877f4b74ce10e (patch)
tree4af28cfc0f6f77e449cffd644b38c5502438c4f4 /app
parenta0c7b0b1a224c71091bdc221e0e6ad3c2550ee2e (diff)
downloadtangerine-wallet-browser-abb5b2013d0a1f4201537413aab877f4b74ce10e.tar
tangerine-wallet-browser-abb5b2013d0a1f4201537413aab877f4b74ce10e.tar.gz
tangerine-wallet-browser-abb5b2013d0a1f4201537413aab877f4b74ce10e.tar.bz2
tangerine-wallet-browser-abb5b2013d0a1f4201537413aab877f4b74ce10e.tar.lz
tangerine-wallet-browser-abb5b2013d0a1f4201537413aab877f4b74ce10e.tar.xz
tangerine-wallet-browser-abb5b2013d0a1f4201537413aab877f4b74ce10e.tar.zst
tangerine-wallet-browser-abb5b2013d0a1f4201537413aab877f4b74ce10e.zip
Fix bug where unconfirmed message sig is lost when locked.
Fixes #484 Adds unsigned messages to the in-memory message list before showing the unlock message.
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 218f1f72a..18f6499d9 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -208,6 +208,7 @@ module.exports = class MetamaskController {
newUnsignedMessage (msgParams, cb) {
var state = this.idStore.getState()
if (!state.isUnlocked) {
+ idStore.addUnconfirmedMessage(msgParams, cb)
this.opts.unlockAccountMessage()
} else {
this.addUnconfirmedMessage(msgParams, cb)