summary refs log tree commit diff
path: root/src/Cache_p.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-25 17:07:10 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-25 17:07:10 +0200
commit570d00b000bd558592af317746fa3639fb022fa4 (patch)
treeee9527460b6c2b940da28672d0d2523376e1e43e /src/Cache_p.h
parentRemove SSSS requests on the UI thread (diff)
downloadnheko-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.h6
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> &)