diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-03-23 21:58:57 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-03-23 21:58:57 +0800 |
commit | bcaf0864c18df4f8d8cb92c739669447fa5aa059 (patch) | |
tree | 2b422cedc7e62f8dbc37c094ff6c6919ca043082 | |
parent | b9714b881a862302baa0c21d8b8c5360c0e9f85d (diff) | |
download | tangerine-wallet-browser-bcaf0864c18df4f8d8cb92c739669447fa5aa059.tar tangerine-wallet-browser-bcaf0864c18df4f8d8cb92c739669447fa5aa059.tar.gz tangerine-wallet-browser-bcaf0864c18df4f8d8cb92c739669447fa5aa059.tar.bz2 tangerine-wallet-browser-bcaf0864c18df4f8d8cb92c739669447fa5aa059.tar.lz tangerine-wallet-browser-bcaf0864c18df4f8d8cb92c739669447fa5aa059.tar.xz tangerine-wallet-browser-bcaf0864c18df4f8d8cb92c739669447fa5aa059.tar.zst tangerine-wallet-browser-bcaf0864c18df4f8d8cb92c739669447fa5aa059.zip |
Remove notice body after reading.
-rw-r--r-- | app/scripts/notice-controller.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/notice-controller.js b/app/scripts/notice-controller.js index 0d72760fe..57aad40c5 100644 --- a/app/scripts/notice-controller.js +++ b/app/scripts/notice-controller.js @@ -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) |