diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-15 20:28:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 20:28:44 +0200 |
commit | cdc474628d1ee58d76d0e05698275c650bebe02c (patch) | |
tree | 169fcb67e53e67f47412e420d8163f46ddcb850a /app | |
parent | d7bdddbeef3df2fa61d2eee42b544b6553d2d2ea (diff) |
Change title bar to only show unread notifications (#11572)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/reducers/missed_updates.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/javascript/mastodon/reducers/missed_updates.js b/app/javascript/mastodon/reducers/missed_updates.js index eeb8b40f6..b71d62d82 100644 --- a/app/javascript/mastodon/reducers/missed_updates.js +++ b/app/javascript/mastodon/reducers/missed_updates.js @@ -1,6 +1,5 @@ import { Map as ImmutableMap } from 'immutable'; import { NOTIFICATIONS_UPDATE } from 'mastodon/actions/notifications'; -import { TIMELINE_UPDATE } from 'mastodon/actions/timelines'; import { APP_FOCUS, APP_UNFOCUS } from 'mastodon/actions/app'; const initialState = ImmutableMap({ @@ -15,7 +14,6 @@ export default function missed_updates(state = initialState, action) { case APP_UNFOCUS: return state.set('focused', false); case NOTIFICATIONS_UPDATE: - case TIMELINE_UPDATE: return state.get('focused') ? state : state.update('unread', x => x + 1); default: return state; |