Skip to content
Snippets Groups Projects
Commit 50aaf466 authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Fix accounts not being normalized from context statuses

parent 7e356503
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,10 @@ import {
TIMELINE_UPDATE,
TIMELINE_EXPAND_SUCCESS
} from '../actions/timelines';
import { STATUS_FETCH_SUCCESS } from '../actions/statuses';
import {
STATUS_FETCH_SUCCESS,
CONTEXT_FETCH_SUCCESS
} from '../actions/statuses';
import Immutable from 'immutable';
const normalizeAccount = (state, account) => state.set(account.get('id'), account);
......@@ -66,6 +69,7 @@ export default function accounts(state = initialState, action) {
case TIMELINE_EXPAND_SUCCESS:
case ACCOUNT_TIMELINE_FETCH_SUCCESS:
case ACCOUNT_TIMELINE_EXPAND_SUCCESS:
case CONTEXT_FETCH_SUCCESS:
return normalizeAccountsFromStatuses(state, Immutable.fromJS(action.statuses));
case TIMELINE_UPDATE:
case REBLOG_SUCCESS:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment