mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove notice body after reading.
This commit is contained in:
parent
b9714b881a
commit
bcaf0864c1
@ -41,6 +41,7 @@ module.exports = class NoticeController extends EventEmitter {
|
||||
var notices = this.getNoticesList()
|
||||
var index = notices.findIndex((currentNotice) => currentNotice.id === noticeToMark.id)
|
||||
notices[index].read = true
|
||||
notices[index].body = ''
|
||||
this.setNoticesList(notices)
|
||||
const latestNotice = this.getLatestUnreadNotice()
|
||||
cb(null, latestNotice)
|
||||
|
Loading…
Reference in New Issue
Block a user