aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-04-16 23:32:59 +0200
committerTobias Fella <fella@posteo.de>2022-04-16 23:32:59 +0200
commit3a81aea545ec014d597f3756c362913aad4421df (patch)
treeebecb575f8d6a65e1c7a8af09572725c587990a7 /lib/connection.cpp
parentbcde0a74e82e7dbb9eed6b108ebbb63941da34ea (diff)
downloadlibquotient-3a81aea545ec014d597f3756c362913aad4421df.tar.gz
libquotient-3a81aea545ec014d597f3756c362913aad4421df.zip
Fixes
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 28377dd9..42a5f5fc 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -241,7 +241,7 @@ public:
auto s = std::move(session);
olmSessions[senderKey].erase(olmSessions[senderKey].begin() + i);
olmSessions[senderKey].insert(olmSessions[senderKey].begin(), std::move(s));
- return { std::get<QString>(result), session->sessionId() };
+ return { std::get<QString>(result), olmSessions[senderKey][0]->sessionId() };
} else {
qCDebug(E2EE) << "Failed to decrypt prekey message";
return {};
@@ -287,7 +287,7 @@ public:
auto s = std::move(session);
olmSessions[senderKey].erase(olmSessions[senderKey].begin() + i);
olmSessions[senderKey].insert(olmSessions[senderKey].begin(), std::move(s));
- return { std::get<QString>(result), session->sessionId() };
+ return { std::get<QString>(result), olmSessions[senderKey][0]->sessionId() };
}
}
qCWarning(E2EE) << "Failed to decrypt message";