mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
[Glitch] Fix accounts' display name/bio not being set from initial state
Port 20d1be18af8c10b6f1bc5597643b85ac6dbae9f2 to glitch-soc
This commit is contained in:
parent
d8544e7003
commit
4cf7cfd9e0
@ -122,7 +122,7 @@ const initialState = ImmutableMap();
|
||||
export default function accounts(state = initialState, action) {
|
||||
switch(action.type) {
|
||||
case STORE_HYDRATE:
|
||||
return state.merge(action.state.get('accounts'));
|
||||
return normalizeAccounts(state, Object.values(action.state.get('accounts').toJS()));
|
||||
case ACCOUNT_FETCH_SUCCESS:
|
||||
case NOTIFICATIONS_UPDATE:
|
||||
return normalizeAccount(state, action.account);
|
||||
|
Loading…
x
Reference in New Issue
Block a user