From abb5b2013d0a1f4201537413aab877f4b74ce10e Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 24 Aug 2016 15:58:08 -0700 Subject: [PATCH] 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. --- app/scripts/metamask-controller.js | 1 + 1 file changed, 1 insertion(+) 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)