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.
This commit is contained in:
Dan Finlay 2016-08-24 15:58:08 -07:00
parent a0c7b0b1a2
commit abb5b2013d
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ module.exports = class MetamaskController {
newUnsignedMessage (msgParams, cb) { newUnsignedMessage (msgParams, cb) {
var state = this.idStore.getState() var state = this.idStore.getState()
if (!state.isUnlocked) { if (!state.isUnlocked) {
idStore.addUnconfirmedMessage(msgParams, cb)
this.opts.unlockAccountMessage() this.opts.unlockAccountMessage()
} else { } else {
this.addUnconfirmedMessage(msgParams, cb) this.addUnconfirmedMessage(msgParams, cb)