mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-19 17:46:33 +00:00
redirect on new user login
This commit is contained in:
parent
62dbd3fd8a
commit
cf57af58f2
@ -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;
|
||||
|
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user