Fix jumpy follow relationship in Pleroma

fix/tabs-bar-issues
Alex Gleason 2021-01-28 16:34:52 -06:00
rodzic 36f6f12856
commit 6c18050636
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -85,9 +85,9 @@ export default function relationships(state = initialState, action) {
case ACCOUNTS_IMPORT:
return importPleromaAccounts(state, action.accounts);
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:
return state.setIn([action.id, action.locked ? 'requested' : 'following'], false);
return state.setIn([action.id, 'requested'], false);
case ACCOUNT_UNFOLLOW_REQUEST:
return state.setIn([action.id, 'following'], false);
case ACCOUNT_UNFOLLOW_FAIL: