Skip to content
Snippets Groups Projects
Unverified Commit cdc47462 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent d7bdddbe
No related branches found
No related tags found
No related merge requests found
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment