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:
parent
a0c7b0b1a2
commit
abb5b2013d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue