diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-01-29 20:23:42 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:56:58 +0100 |
commit | eaf23c0f6bb97fdf16631296ab7016447a99c4f2 (patch) | |
tree | 0b6901fe0b064796d1623d13c2cc17e2f4e4441b /lib/crypto/qolmaccount.cpp | |
parent | 6190e2b23a5ef62530a90fc03e264605e716ad2e (diff) | |
download | libquotient-eaf23c0f6bb97fdf16631296ab7016447a99c4f2.tar.gz libquotient-eaf23c0f6bb97fdf16631296ab7016447a99c4f2.zip |
Don't die on broken olm account
Diffstat (limited to 'lib/crypto/qolmaccount.cpp')
-rw-r--r-- | lib/crypto/qolmaccount.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/crypto/qolmaccount.cpp b/lib/crypto/qolmaccount.cpp index 3c1f4bd3..1de8a0dc 100644 --- a/lib/crypto/qolmaccount.cpp +++ b/lib/crypto/qolmaccount.cpp @@ -77,7 +77,10 @@ void QOlmAccount::unpickle(QByteArray &pickled, const PicklingMode &mode) const QByteArray key = toKey(mode); const auto error = olm_unpickle_account(m_account, key.data(), key.length(), pickled.data(), pickled.size()); if (error == olm_error()) { - throw lastError(m_account); + qCWarning(E2EE) << "Failed to unpickle olm account"; + //TODO: Do something that is not dying + // Probably log the user out since we have no way of getting to the keys + //throw lastError(m_account); } } |