diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp index b4310f26..8993f715 100644 --- a/src/encryption/Olm.cpp +++ b/src/encryption/Olm.cpp @@ -1306,7 +1306,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 nlohmann::json(e); }, event); @@ -1569,13 +1569,13 @@ send_encrypted_to_device_messages(const std::mapwarn("Not creating new session with {}:{} " "because of rate limit",