ImportKeys/ExportKeys separate dialog componants
This commit is contained in:
@@ -324,13 +324,15 @@ class MatrixClient(nio.AsyncClient):
|
||||
account = self.models[Account][self.user_id]
|
||||
import_keys = partial(self.olm.import_keys_static, infile, passphrase)
|
||||
|
||||
account.importing_key = 0
|
||||
account.total_keys_to_import = -1 # preparing
|
||||
|
||||
try:
|
||||
sessions = await loop.run_in_executor(None, import_keys)
|
||||
except nio.EncryptionError as err:
|
||||
account.import_error = (infile, passphrase, str(err))
|
||||
return
|
||||
|
||||
account.importing_key = 0
|
||||
account.total_keys_to_import = len(sessions)
|
||||
|
||||
for session in sessions:
|
||||
|
Reference in New Issue
Block a user