aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 5d3ae329..3696f808 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -537,10 +537,10 @@ public:
}
if (!usersToDevicesToEvents.empty()) {
connection->sendToDevices("m.room.encrypted", usersToDevicesToEvents);
- QHash<QString, QList<std::pair<QString, QString>>> receivedDevices;
+ QVector<std::tuple<QString, QString, QString>> receivedDevices;
for (const auto& user : devices.keys()) {
for (const auto& device : devices[user]) {
- receivedDevices[user] += {device, q->connection()->curveKeyForUserDevice(user, device) };
+ receivedDevices += {user, device, q->connection()->curveKeyForUserDevice(user, device) };
}
}
connection->database()->setDevicesReceivedKey(q->id(), receivedDevices, sessionId, index);