redirect on new user login

This commit is contained in:
Martti Malmi 2023-04-21 15:53:45 +03:00
parent 62dbd3fd8a
commit cf57af58f2
2 changed files with 3 additions and 3 deletions

View File

@ -22,8 +22,8 @@ export default {
windowNostrQueue: [],
isProcessingQueue: false,
getPublicKey, // TODO confusing similarity to getPubKey
loginAsNewUser() {
this.login(this.generateKey(), true);
loginAsNewUser(redirect = false) {
this.login(this.generateKey(), redirect);
},
login(key: any, redirect = false) {
const shouldRefresh = !!this.key;

View File

@ -81,7 +81,7 @@ class Login extends Component {
loginAsNewUser() {
let name = document.getElementById('login-form-name').value;
Key.loginAsNewUser({ name, autofollow: false });
Key.loginAsNewUser(this.props.fullScreen);
localState.get('showFollowSuggestions').put(true);
name &&
setTimeout(() => {