about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers/timelines.js
diff options
context:
space:
mode:
authorStarfall <root@starfall.blue>2019-12-29 17:53:54 -0600
committerStarfall <root@starfall.blue>2019-12-29 17:53:54 -0600
commitc0c9529df269816f52915a9802e5e30fbce9576b (patch)
tree077a7a12c69b18dafd3db3226f4beac477d0f49f /app/javascript/flavours/glitch/reducers/timelines.js
parent9ee65e89d547ae4a5bc0a5bdb59316ba5c061cfd (diff)
parent22daf24600d8e99e4569740ee5836d25c70c1e8b (diff)
Merge branch 'glitch'
Diffstat (limited to 'app/javascript/flavours/glitch/reducers/timelines.js')
-rw-r--r--app/javascript/flavours/glitch/reducers/timelines.js2
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;