Change title bar to only show unread notifications (#11572)

lolsob-rspec
Eugen Rochko 2019-08-15 20:28:44 +02:00 committed by GitHub
parent bd43bd8925
commit 9b1568c466
1 changed files with 0 additions and 2 deletions

View File

@ -1,6 +1,5 @@
import { Map as ImmutableMap } from 'immutable'; import { Map as ImmutableMap } from 'immutable';
import { NOTIFICATIONS_UPDATE } from 'mastodon/actions/notifications'; import { NOTIFICATIONS_UPDATE } from 'mastodon/actions/notifications';
import { TIMELINE_UPDATE } from 'mastodon/actions/timelines';
import { APP_FOCUS, APP_UNFOCUS } from 'mastodon/actions/app'; import { APP_FOCUS, APP_UNFOCUS } from 'mastodon/actions/app';
const initialState = ImmutableMap({ const initialState = ImmutableMap({
@ -15,7 +14,6 @@ export default function missed_updates(state = initialState, action) {
case APP_UNFOCUS: case APP_UNFOCUS:
return state.set('focused', false); return state.set('focused', false);
case NOTIFICATIONS_UPDATE: case NOTIFICATIONS_UPDATE:
case TIMELINE_UPDATE:
return state.get('focused') ? state : state.update('unread', x => x + 1); return state.get('focused') ? state : state.update('unread', x => x + 1);
default: default:
return state; return state;