Closed olabini closed 5 years ago
OK, after thinking through this, my proposal is that we move towards a structure that looks like this:
Inside the plugin, I propose that we separate out the prekey plugin functionality into two different sub-plugins. One for managing everything related to the account (checking storage, publishing), and another for getting ensembles for peers. I think this will clean up a lot of stuff.
Thoughts, comments?
I specially like this:
Inside of prekey_manager_s we have a list of mappings from domains (or something) to the server identity for that domain. This list will be empty initially
As I don't think we have a mapping right now.
Sounds good.
Yeah. In fact, we can't accommodate more than one prekey server per account at all. That's sometime we need to test later as well.
One suggestion here is to cache the server identities in the plugin discovery code, to make things easier.
This is a big refactor, and is connected to the prekey client file refactoring for libotr-ng otrv4/libotr-ng#178
This is now done!!!!
We need to rethink completely how the prekey communication happens - the current model is not workable at all - especially the use of contexts on the callback object. I'll need to map all this functionality and figure out how to change it to something that works.