ctypes-otr icon indicating copy to clipboard operation
ctypes-otr copied to clipboard

Async key generation

Open arlolra opened this issue 9 years ago • 4 comments

  • [x] Add the ability generate keys asynchronously in a worker
  • [x] Use the async worker to generate keys on account create, or as needed
  • [ ] If we somehow get to starting an OTR session w/o a key, grey out the conv browser with a message and throbber, and generate the key synchronously, rather than launching a modal

arlolra avatar Nov 29 '14 01:11 arlolra

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.

azadi avatar Mar 02 '15 06:03 azadi

@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?

vqhuy avatar May 02 '16 18:05 vqhuy

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?

arlolra avatar May 03 '16 15:05 arlolra

yup, I got it. Thanks!

vqhuy avatar May 03 '16 19:05 vqhuy