Skip to content

Commit

Permalink
Change title bar to only show unread notifications (mastodon#11572)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 60361c5 commit 9336228
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/javascript/mastodon/reducers/missed_updates.js
Original file line number Diff line number Diff line change
@@ -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({
Expand All @@ -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;
Expand Down

0 comments on commit 9336228

Please sign in to comment.