kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix jumpy follow relationship in Pleroma
rodzic
36f6f12856
commit
6c18050636
|
@ -85,9 +85,9 @@ export default function relationships(state = initialState, action) {
|
||||||
case ACCOUNTS_IMPORT:
|
case ACCOUNTS_IMPORT:
|
||||||
return importPleromaAccounts(state, action.accounts);
|
return importPleromaAccounts(state, action.accounts);
|
||||||
case ACCOUNT_FOLLOW_REQUEST:
|
case ACCOUNT_FOLLOW_REQUEST:
|
||||||
return state.setIn([action.id, action.locked ? 'requested' : 'following'], true);
|
return state.setIn([action.id, 'requested'], true);
|
||||||
case ACCOUNT_FOLLOW_FAIL:
|
case ACCOUNT_FOLLOW_FAIL:
|
||||||
return state.setIn([action.id, action.locked ? 'requested' : 'following'], false);
|
return state.setIn([action.id, 'requested'], false);
|
||||||
case ACCOUNT_UNFOLLOW_REQUEST:
|
case ACCOUNT_UNFOLLOW_REQUEST:
|
||||||
return state.setIn([action.id, 'following'], false);
|
return state.setIn([action.id, 'following'], false);
|
||||||
case ACCOUNT_UNFOLLOW_FAIL:
|
case ACCOUNT_UNFOLLOW_FAIL:
|
||||||
|
|
Ładowanie…
Reference in New Issue