diff options
author | Tobias Fella <fella@posteo.de> | 2022-03-06 22:54:01 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-05-16 20:47:17 +0200 |
commit | 6f5ac9b7315d75692960e5eac7b1eb6867c0d203 (patch) | |
tree | f20f68dbf9ff687f212c7e074802c80370ef53dd /lib/connection.cpp | |
parent | 3eb7ad8b0a1ac0f6f9cda679108937a01268f184 (diff) | |
download | libquotient-6f5ac9b7315d75692960e5eac7b1eb6867c0d203.tar.gz libquotient-6f5ac9b7315d75692960e5eac7b1eb6867c0d203.zip |
Keep log of where we send keys and send keys to new devices and users
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index b11ec731..2a1b39f9 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -2247,6 +2247,7 @@ bool Connection::hasOlmSession(User* user, const QString& deviceId) const QPair<QOlmMessage::Type, QByteArray> Connection::olmEncryptMessage(User* user, const QString& device, const QByteArray& message) { //TODO be smarter about choosing a session; see e2ee impl guide + //TODO do we need to save the olm session after sending a message? const auto& curveKey = curveKeyForUserDevice(user->id(), device); QOlmMessage::Type type = d->olmSessions[curveKey][0]->encryptMessageType(); auto result = d->olmSessions[curveKey][0]->encrypt(message); |