diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-25 17:07:10 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-25 17:07:10 +0200 |
commit | 570d00b000bd558592af317746fa3639fb022fa4 (patch) | |
tree | ee9527460b6c2b940da28672d0d2523376e1e43e /src/Cache_p.h | |
parent | Remove SSSS requests on the UI thread (diff) | |
download | nheko-570d00b000bd558592af317746fa3639fb022fa4.tar.xz |
Fix crash when storing secrets
Nested QEventLoops are scary. Ultimately we shouldn't use them, but I have no better solution right now. fixes #656
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r-- | src/Cache_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h index c9d42202..89c88925 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -285,9 +285,9 @@ public: void saveOlmAccount(const std::string &pickled); std::string restoreOlmAccount(); - void storeSecret(const std::string &name, const std::string &secret); - void deleteSecret(const std::string &name); - std::optional<std::string> secret(const std::string &name); + void storeSecret(const std::string name, const std::string secret); + void deleteSecret(const std::string name); + std::optional<std::string> secret(const std::string name); template<class T> static constexpr bool isStateEvent(const mtx::events::StateEvent<T> &) |