about summary refs log tree commit diff
path: root/app/assets/javascripts/components/reducers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-18 18:38:44 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-18 18:38:44 +0200
commitee770c3fd3bc0eb908791eecfaff0fa01f4fc1ce (patch)
tree9eeb741abf739370a97ebd22b7db22a543ede26c /app/assets/javascripts/components/reducers
parent0967961de758b375ca61df1ba9b448aaa2e3c1f8 (diff)
Live update account timelines, small fix for replyCompose
Diffstat (limited to 'app/assets/javascripts/components/reducers')
-rw-r--r--app/assets/javascripts/components/reducers/timelines.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/reducers/timelines.jsx b/app/assets/javascripts/components/reducers/timelines.jsx
index 7fd29c812..04a49e16d 100644
--- a/app/assets/javascripts/components/reducers/timelines.jsx
+++ b/app/assets/javascripts/components/reducers/timelines.jsx
@@ -101,6 +101,7 @@ function accountTimelineToMaps(state, accountId, statuses) {
 function updateTimelineWithMaps(state, timeline, status) {
   state = statusToMaps(state, status);
   state = state.update(timeline, list => list.unshift(status.get('id')));
+  state = state.updateIn(['accounts_timelines', status.getIn(['account', 'id'])], Immutable.List(), list => list.unshift(status.get('id')));
 
   return state;
 };