summary refs log tree commit diff
path: root/src/encryption/Olm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/encryption/Olm.cpp')
-rw-r--r--src/encryption/Olm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp
index 733ce94f..b4310f26 100644
--- a/src/encryption/Olm.cpp
+++ b/src/encryption/Olm.cpp
@@ -1363,12 +1363,12 @@ send_encrypted_to_device_messages(const std::map<std::string, std::vector<std::s
 
                 auto session = cache::getLatestOlmSession(device_curve);
                 if (!session || force_new_session) {
-                    if (rateLimit.value(QPair(user, device)) + 60 * 60 * 10 < currentTime) {
+                    if (rateLimit.value(std::pair(user, device)) + 60 * 60 * 10 < currentTime) {
                         claims.one_time_keys[user][device] = mtx::crypto::SIGNED_CURVE25519;
                         pks[user][device].ed25519          = d.keys.at("ed25519:" + device);
                         pks[user][device].curve25519       = d.keys.at("curve25519:" + device);
 
-                        rateLimit.insert(QPair(user, device), currentTime);
+                        rateLimit.insert(std::pair(user, device), currentTime);
                     } else {
                         nhlog::crypto()->warn("Not creating new session with {}:{} "
                                               "because of rate limit",