summary refs log tree commit diff
path: root/src/CacheCryptoStructs.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-07 03:38:48 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-07 03:52:57 +0100
commit5ca1fb18bbf9789a65eaf3113ee1ff65449ff086 (patch)
tree83885596d4b830ed5e6da2f2e36bc17048881fa4 /src/CacheCryptoStructs.h
parentFix crash when clearing empty timeline (diff)
downloadnheko-5ca1fb18bbf9789a65eaf3113ee1ff65449ff086.tar.xz
Move away from using an event loop to access secrets
Fixes messages in room flickering and being stuck

fixes #760
relates to #770
relates to #789
Diffstat (limited to 'src/CacheCryptoStructs.h')
-rw-r--r--src/CacheCryptoStructs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CacheCryptoStructs.h b/src/CacheCryptoStructs.h

index b7461848..f56c8685 100644 --- a/src/CacheCryptoStructs.h +++ b/src/CacheCryptoStructs.h
@@ -141,6 +141,14 @@ struct VerificationStorage std::mutex verification_storage_mtx; }; +//! In memory cache of verification status +struct SecretsStorage +{ + //! secret name -> secret + std::map<std::string, std::string> secrets; + std::mutex mtx; +}; + // this will store the keys of the user with whom a encrypted room is shared with struct UserKeyCache {