arlolra / ctypes-otr

js-ctypes wrapper for libotr
Mozilla Public License 2.0
29 stars 7 forks source link

Async key generation #20

Open arlolra opened 9 years ago

arlolra commented 9 years ago
azadi commented 9 years ago

I think this is a great idea, especially since we are enforcing private conversations by default, which means that all accounts will need to generate keys at one point or the other. On account create would be great.

vqhuy commented 8 years ago

@arlolra : I am trying to resolve the task 3 but I am struggling to get the uiConv. I think I need to modify the method ui.generate but I cannot find any way to get the uiConv to grey out the conv browser. Do you have any idea?

arlolra commented 8 years ago

create_privkey_cb is called with only an accountname and protocol, which makes sense, given that it is going to generate a key to be used for all conversations with that pair. We probably need a utility like getUIConvForRecipient that returns all the matching conversations to be greyed out. Does that help?

vqhuy commented 8 years ago

yup, I got it. Thanks!