From 5ca1fb18bbf9789a65eaf3113ee1ff65449ff086 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 7 Nov 2021 03:38:48 +0100 Subject: 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 --- src/CacheCryptoStructs.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/CacheCryptoStructs.h') 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 secrets; + std::mutex mtx; +}; + // this will store the keys of the user with whom a encrypted room is shared with struct UserKeyCache { -- cgit 1.5.1