fix tests without olm

This commit is contained in:
Sorunome 2020-06-04 14:26:35 +02:00
parent fcde6a2459
commit 2e46155f47
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -56,7 +56,7 @@ class OlmManager {
throw ('Upload key failed');
}
} catch (_) {
_olmAccount.free();
_olmAccount?.free();
_olmAccount = null;
}
} else {
@ -65,7 +65,7 @@ class OlmManager {
_olmAccount = olm.Account();
_olmAccount.unpickle(client.userID, olmAccount);
} catch (_) {
_olmAccount.free();
_olmAccount?.free();
_olmAccount = null;
}
}