diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-12-17 15:38:19 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-12-17 15:55:10 +0100 |
commit | 66ab1f83b0d342341181e0c88da83c966391fc0c (patch) | |
tree | 79784be7117075c41f111ec30e3b54f7f16b6fb9 /app | |
parent | 6a1b4c345237850de0972f43350eda1de809072c (diff) |
Fix various issues caused by wrong `unread` key being updated
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/timelines.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/timelines.js b/app/javascript/flavours/glitch/reducers/timelines.js index d3318f8d3..1ea9ed645 100644 --- a/app/javascript/flavours/glitch/reducers/timelines.js +++ b/app/javascript/flavours/glitch/reducers/timelines.js @@ -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')))); if (!filtered) { - state = state.update('unread', unread => unread + 1); + state = state.updateIn([timeline, 'unread'], unread => unread + 1); } return state; |