Fix various issues caused by wrong `unread` key being updated

pull/1257/head
Thibaut Girka 2019-12-17 15:38:19 +01:00 committed by ThibG
parent 6a1b4c3452
commit 66ab1f83b0
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ const updateTimeline = (state, timeline, status, usePendingItems, filtered) => {
state = state.update(timeline, initialTimeline, map => map.update('pendingItems', list => list.unshift(status.get('id')))); state = state.update(timeline, initialTimeline, map => map.update('pendingItems', list => list.unshift(status.get('id'))));
if (!filtered) { if (!filtered) {
state = state.update('unread', unread => unread + 1); state = state.updateIn([timeline, 'unread'], unread => unread + 1);
} }
return state; return state;