aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/encryptionmanager.cpp2
-rw-r--r--lib/room.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/encryptionmanager.cpp b/lib/encryptionmanager.cpp
index 36cfb34c..b09e5260 100644
--- a/lib/encryptionmanager.cpp
+++ b/lib/encryptionmanager.cpp
@@ -38,7 +38,7 @@ public:
EncryptionManager* q;
// A map from senderKey to InboundSession
- std::map<QString, std::unique_ptr<QOlmSession>> sessions; // TODO: cache
+ UnorderedMap<QString, std::unique_ptr<QOlmSession>> sessions; // TODO: cache
void updateDeviceKeys(
const QHash<QString,
QHash<QString, QueryKeysJob::DeviceInformation>>& deviceKeys)
diff --git a/lib/room.cpp b/lib/room.cpp
index d755f8eb..65ce82ac 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -369,7 +369,7 @@ public:
// A map from senderKey to a map of sessionId to InboundGroupSession
// Not using QMultiHash, because we want to quickly return
// a number of relations for a given event without enumerating them.
- std::map<QPair<QString, QString>, std::unique_ptr<QOlmInboundGroupSession>> groupSessions;
+ UnorderedMap<QPair<QString, QString>, std::unique_ptr<QOlmInboundGroupSession>> groupSessions;
void loadMegOlmSessions() {
QFile file { connection->e2eeDataDir() + QStringLiteral("/%1.json").arg(id) };