1
0
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:
Kevin Serrano 2017-03-23 09:58:57 -04:00
parent b9714b881a
commit bcaf0864c1
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1

View File

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