1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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

View File

@ -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)