Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate keys after account creation. #72

Closed
wants to merge 1 commit into from
Closed

Generate keys after account creation. #72

wants to merge 1 commit into from

Conversation

vqhuy
Copy link
Collaborator

@vqhuy vqhuy commented Mar 14, 2016

account: acc.normalizedName,
protocol: acc.protocol.normalizedName,
};
ui.generate(args);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ui.generate() is going to open a blocking modal, which is what we want to avoid.

Instead, you should directly call,

otr.generatePrivateKey(acc.normalizedName, acc.protocol.normalizedName)

which will launch the async worker.

We'll want to suppress any error here though. So,

otr.generatePrivateKey( ... ).catch(function(err) {
  Cu.reportError(err);
});

@arlolra
Copy link
Owner

arlolra commented Mar 14, 2016

Great, thanks!

Merged in 67ffdb8

@arlolra arlolra closed this Mar 14, 2016
@vqhuy vqhuy deleted the key-generation branch March 15, 2016 02:10
@arlolra arlolra added the ux label Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants