Commit 2d3be0b71fb114fe7815f6d65ae8c25ba8337ae4
Merge pull request #602 from dangerousbeans/only_activity_for_you_badge_count
only count mentions for badge countMatt McKegg authored on 8/8/2017, 12:33:20 AM
GitHub committed on 8/8/2017, 12:33:20 AM
Parent: 0d7ab4023cc3d953c3edb70e8ca7d2c67ed4881e
Parent: 1dbd43a0028f966bbda4aefac6ac37088dd99da9
Files changed
main-window.js | changed |
main-window.js | ||
---|---|---|
@@ -58,14 +58,9 @@ | ||
58 | 58 | var views = api.app.views(api.page.html.render, [ |
59 | 59 | '/public', '/private', id, '/mentions' |
60 | 60 | ]) |
61 | 61 | |
62 | - var pendingCount = computed([ | |
63 | - views.get('/public').pendingUpdates, | |
64 | - views.get('/private').pendingUpdates | |
65 | - ], (...counts) => { | |
66 | - return counts.reduce((a, b) => a + b) | |
67 | - }) | |
62 | + var pendingCount = views.get('/mentions').pendingUpdates | |
68 | 63 | |
69 | 64 | watch(pendingCount, count => { |
70 | 65 | electron.remote.app.setBadgeCount(count) |
71 | 66 | }) |
Built with git-ssb-web