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
This commit is contained in:
parent
d112d6b11f
commit
5ca1fb18bb
11 changed files with 267 additions and 208 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue