mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Change title bar to only show unread notifications (#11572)
This commit is contained in:
parent
d7bdddbeef
commit
cdc474628d
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue