diff options
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/qolmaccount.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/qolmaccount.cpp b/lib/crypto/qolmaccount.cpp index 44959ac2..3c1f4bd3 100644 --- a/lib/crypto/qolmaccount.cpp +++ b/lib/crypto/qolmaccount.cpp @@ -68,6 +68,7 @@ void QOlmAccount::createNewAccount() if (error == olm_error()) { throw lastError(m_account); } + Q_EMIT needsSave(); } void QOlmAccount::unpickle(QByteArray &pickled, const PicklingMode &mode) @@ -218,6 +219,7 @@ std::optional<QOlmError> QOlmAccount::removeOneTimeKeys(const std::unique_ptr<QO if (error == olm_error()) { return lastError(m_account); } + Q_EMIT needsSave(); return std::nullopt; } @@ -281,6 +283,7 @@ std::variant<std::unique_ptr<QOlmSession>, QOlmError> QOlmAccount::createOutboun void QOlmAccount::markKeysAsPublished() { olm_account_mark_keys_as_published(m_account); + Q_EMIT needsSave(); } bool Quotient::verifyIdentitySignature(const DeviceKeys &deviceKeys, |