Fix jumpy follow relationship in Pleroma

This commit is contained in:
Alex Gleason 2021-01-28 16:34:52 -06:00
parent 36f6f12856
commit 6c18050636
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -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: