aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-11-20 16:58:40 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:56:59 +0100
commit877591582f07b5c5c104370e80c858b951c0757f (patch)
treec5fe3210c1d2a79d5befc320cc2cb46bef25fc15 /lib/room.cpp
parent6896d3e1bd57c398bd4e1ee9badac87dc66ccea7 (diff)
downloadlibquotient-877591582f07b5c5c104370e80c858b951c0757f.tar.gz
libquotient-877591582f07b5c5c104370e80c858b951c0757f.zip
Use UnorderedMap instead of std::map
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp2
1 files changed, 1 insertions, 1 deletions
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) };