[omemo] Refactor whole plugin

- create a OMEMOConnection class to mimic more how Gajim does things
This commit is contained in:
Philipp Hörist
2017-11-10 21:21:53 +01:00
parent 18598abf24
commit ce480aa5d7
5 changed files with 871 additions and 950 deletions

View File

@@ -39,6 +39,7 @@ NS_OMEMO = 'eu.siacs.conversations.axolotl'
NS_DEVICE_LIST = NS_OMEMO + '.devicelist'
NS_NOTIFY = NS_DEVICE_LIST + '+notify'
NS_BUNDLES = NS_OMEMO + '.bundles:'
NS_HINTS = 'urn:xmpp:hints'
log = logging.getLogger('gajim.plugin_system.omemo')
@@ -149,7 +150,7 @@ class DevicelistQuery(Iq):
class DevicelistPEP(AbstractPEP):
type_ = 'headline'
type_ = 'omemo-devicelist'
namespace = NS_DEVICE_LIST
def _extract_info(self, items):