diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp index 4747a7e9..fe5b6bc4 100644 --- a/src/encryption/Olm.cpp +++ b/src/encryption/Olm.cpp @@ -1209,7 +1209,7 @@ send_encrypted_to_device_messages(const std::map, qint64> rateLimit; + static QMap, qint64> rateLimit; nlohmann::json ev_json = std::visit([](const auto &e) { return json(e); }, event); @@ -1263,12 +1263,12 @@ send_encrypted_to_device_messages(const std::mapwarn("Not creating new session with {}:{} " "because of rate limit", @@ -1461,13 +1461,13 @@ send_encrypted_to_device_messages(const std::mapwarn("Not creating new session with {}:{} " "because of rate limit",