core: various changes and fixes to work with new storage and D-Bus bridge:
- fixes coroutines handling in various places - fixes types which are not serialised by Tx DBus - XEP-0384: call storage methods in main thread in XEP: Python OMEMO's Promise use thread which prevent the use of AsyncIO loop. To work around that, callLater is used to launch storage method in main thread. This is a temporary workaround, as Python OMEMO should get rid of Promise implementation and threads soon.
This commit is contained in:
parent
893e8e7a96
commit
97df5f8be3
1 changed files with 221 additions and 185 deletions
|
|
@ -142,9 +142,6 @@ class Identity:
|
|||
|
||||
stored_data = await client._identity_storage.all()
|
||||
|
||||
self.host.memory.storage.getPrivates(
|
||||
namespace="identity", binary=True, profile=client.profile)
|
||||
|
||||
to_delete = []
|
||||
|
||||
for key, value in stored_data.items():
|
||||
|
|
|
|||
Loading…
Reference in a new issue