git ssb

10+

Matt McKegg / patchwork



Commit 2d3be0b71fb114fe7815f6d65ae8c25ba8337ae4

Merge pull request #602 from dangerousbeans/only_activity_for_you_badge_count

only count mentions for badge count
Matt 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.jschanged
main-window.jsView
@@ -58,14 +58,9 @@
5858 var views = api.app.views(api.page.html.render, [
5959 '/public', '/private', id, '/mentions'
6060 ])
6161
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
6863
6964 watch(pendingCount, count => {
7065 electron.remote.app.setBadgeCount(count)
7166 })

Built with git-ssb-web