fix tests without olm
This commit is contained in:
parent
fcde6a2459
commit
2e46155f47
|
@ -56,7 +56,7 @@ class OlmManager {
|
||||||
throw ('Upload key failed');
|
throw ('Upload key failed');
|
||||||
}
|
}
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
_olmAccount.free();
|
_olmAccount?.free();
|
||||||
_olmAccount = null;
|
_olmAccount = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -65,7 +65,7 @@ class OlmManager {
|
||||||
_olmAccount = olm.Account();
|
_olmAccount = olm.Account();
|
||||||
_olmAccount.unpickle(client.userID, olmAccount);
|
_olmAccount.unpickle(client.userID, olmAccount);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
_olmAccount.free();
|
_olmAccount?.free();
|
||||||
_olmAccount = null;
|
_olmAccount = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue