mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
swap out set state for updateState
This commit is contained in:
parent
a96f892788
commit
c7b9adbfcb
@ -103,10 +103,7 @@ module.exports = class MessageManager extends EventEmitter{
|
|||||||
}
|
}
|
||||||
|
|
||||||
_saveMsgList (msgList) {
|
_saveMsgList (msgList) {
|
||||||
this.emit('updateBadge')
|
this.memStore.updateState({ messages: msgList })
|
||||||
let state = this.memStore.getState()
|
|
||||||
state.messages = msgList
|
|
||||||
this.memStore.putState(state)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user