aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-19 17:56:56 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-19 17:56:56 +0200
commit593c241661148dfd80854d3e156d9a4ee60d5ab4 (patch)
tree788d35bdf787a1e07d8f9c472df85600946fb5b0
parentf6ad01c959e19362a0b15779b816432595153d3b (diff)
downloadlibquotient-593c241661148dfd80854d3e156d9a4ee60d5ab4.tar.gz
libquotient-593c241661148dfd80854d3e156d9a4ee60d5ab4.zip
Fix FTBFS and warnings with E2EE switched on
-rw-r--r--lib/encryptionmanager.cpp3
-rw-r--r--lib/room.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/encryptionmanager.cpp b/lib/encryptionmanager.cpp
index c50459f3..4a1025b2 100644
--- a/lib/encryptionmanager.cpp
+++ b/lib/encryptionmanager.cpp
@@ -89,7 +89,8 @@ public:
// A map from senderKey to InboundSession
QMap<QString, InboundSession*> sessions; // TODO: cache
void updateDeviceKeys(
- const QHash<QString, QHash<QString, QueryKeysJob::DeviceKeys>>& deviceKeys)
+ const QHash<QString,
+ QHash<QString, QueryKeysJob::DeviceInformation>>& deviceKeys)
{
for (auto userId : deviceKeys.keys()) {
for (auto deviceId : deviceKeys.value(userId).keys()) {
diff --git a/lib/room.cpp b/lib/room.cpp
index 22ec1c82..b83d805c 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1263,7 +1263,7 @@ RoomEventPtr Room::decryptMessage(const EncryptedEvent& encryptedEvent)
QString decrypted = d->groupSessionDecryptMessage(
encryptedEvent.ciphertext(), encryptedEvent.senderKey(),
encryptedEvent.sessionId(), encryptedEvent.id(),
- encryptedEvent.timestamp());
+ encryptedEvent.originTimestamp());
if (decrypted.isEmpty()) {
return {};
}