From 744c65d9906ddca568ffa7831b202e75259c4633 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Thu, 8 Nov 2018 22:44:58 +0900
Subject: [PATCH] refs #677 Fix default settings of unread notification
---
src/constants/unreadNotification.js | 2 +-
src/main/index.js | 1 +
src/renderer/store/TimelineSpace/SideMenu.js | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/constants/unreadNotification.js b/src/constants/unreadNotification.js
index 1ea5774c..929c744a 100644
--- a/src/constants/unreadNotification.js
+++ b/src/constants/unreadNotification.js
@@ -6,6 +6,6 @@ export default {
default: true
},
Public: {
- default: true
+ default: false
}
}
diff --git a/src/main/index.js b/src/main/index.js
index 8912dc06..3e734c33 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -779,6 +779,7 @@ ipcMain.on('get-unread-notification', (event, accountID) => {
event.sender.send('response-get-unread-notification', doc)
})
.catch(err => {
+ console.warn(err)
event.sender.send('error-get-unread-notification', err)
})
})
diff --git a/src/renderer/store/TimelineSpace/SideMenu.js b/src/renderer/store/TimelineSpace/SideMenu.js
index dbed08f9..dc02e4c9 100644
--- a/src/renderer/store/TimelineSpace/SideMenu.js
+++ b/src/renderer/store/TimelineSpace/SideMenu.js
@@ -57,6 +57,7 @@ const SideMenu = {
commit('changeUnreadNotifications', false)
commit('changeUnreadLocalTimeline', false)
commit('changeUnreadDirectMessagesTimeline', false)
+ commit('changeUnreadPublicTimeline', false)
},
changeCollapse ({ commit }, value) {
commit('changeCollapse', value)