Set onboarding on account creation

api-accept
Alex Gleason 2022-05-02 16:24:19 -05:00
rodzic 35a731ffd9
commit 23fb01d32d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -13,6 +13,7 @@ import { createAccount } from 'soapbox/actions/accounts';
import { createApp } from 'soapbox/actions/apps'; import { createApp } from 'soapbox/actions/apps';
import { fetchMeSuccess, fetchMeFail } from 'soapbox/actions/me'; import { fetchMeSuccess, fetchMeFail } from 'soapbox/actions/me';
import { obtainOAuthToken, revokeOAuthToken } from 'soapbox/actions/oauth'; import { obtainOAuthToken, revokeOAuthToken } from 'soapbox/actions/oauth';
import { startOnboarding } from 'soapbox/actions/onboarding';
import snackbar from 'soapbox/actions/snackbar'; import snackbar from 'soapbox/actions/snackbar';
import { custom } from 'soapbox/custom'; import { custom } from 'soapbox/custom';
import KVStore from 'soapbox/storage/kv_store'; import KVStore from 'soapbox/storage/kv_store';
@ -292,7 +293,10 @@ export function register(params) {
return dispatch(createAppAndToken()) return dispatch(createAppAndToken())
.then(() => dispatch(createAccount(params))) .then(() => dispatch(createAccount(params)))
.then(({ token }) => dispatch(authLoggedIn(token))); .then(({ token }) => {
dispatch(startOnboarding());
return dispatch(authLoggedIn(token));
});
}; };
} }