aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-03-23 21:58:57 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-03-23 21:58:57 +0800
commitbcaf0864c18df4f8d8cb92c739669447fa5aa059 (patch)
tree2b422cedc7e62f8dbc37c094ff6c6919ca043082
parentb9714b881a862302baa0c21d8b8c5360c0e9f85d (diff)
downloadtangerine-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.js1
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)