Skip to content

Commit 9336228

Browse files
Gargronhiyuki2578
authored andcommitted
Change title bar to only show unread notifications (mastodon#11572)
1 parent 60361c5 commit 9336228

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

app/javascript/mastodon/reducers/missed_updates.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Map as ImmutableMap } from 'immutable';
22
import { NOTIFICATIONS_UPDATE } from 'mastodon/actions/notifications';
3-
import { TIMELINE_UPDATE } from 'mastodon/actions/timelines';
43
import { APP_FOCUS, APP_UNFOCUS } from 'mastodon/actions/app';
54

65
const initialState = ImmutableMap({
@@ -15,7 +14,6 @@ export default function missed_updates(state = initialState, action) {
1514
case APP_UNFOCUS:
1615
return state.set('focused', false);
1716
case NOTIFICATIONS_UPDATE:
18-
case TIMELINE_UPDATE:
1917
return state.get('focused') ? state : state.update('unread', x => x + 1);
2018
default:
2119
return state;

0 commit comments

Comments
 (0)