aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/e2ee/qolmoutboundsession.cpp11
-rw-r--r--lib/room.cpp1
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/e2ee/qolmoutboundsession.cpp b/lib/e2ee/qolmoutboundsession.cpp
index 56f78906..1176d790 100644
--- a/lib/e2ee/qolmoutboundsession.cpp
+++ b/lib/e2ee/qolmoutboundsession.cpp
@@ -45,12 +45,6 @@ QOlmOutboundGroupSessionPtr QOlmOutboundGroupSession::create()
olmOutboundGroupSession));
}
- // FIXME: is it used anywhere?
- const auto keyMaxLength = olm_outbound_group_session_key_length(olmOutboundGroupSession);
- QByteArray keyBuffer(keyMaxLength, '\0');
- olm_outbound_group_session_key(olmOutboundGroupSession, reinterpret_cast<uint8_t *>(keyBuffer.data()),
- keyMaxLength);
-
return std::make_unique<QOlmOutboundGroupSession>(olmOutboundGroupSession);
}
@@ -85,11 +79,6 @@ QOlmExpected<QOlmOutboundGroupSessionPtr> QOlmOutboundGroupSession::unpickle(
return olm_outbound_group_session_last_error_code(
olmOutboundGroupSession);
}
- const auto idMaxLength = olm_outbound_group_session_id_length(olmOutboundGroupSession);
- QByteArray idBuffer(idMaxLength, '\0');
- olm_outbound_group_session_id(olmOutboundGroupSession, reinterpret_cast<uint8_t *>(idBuffer.data()),
- idBuffer.length());
- // FIXME: idBuffer doesn't seem to be used, is it needed here?
key.clear();
return std::make_unique<QOlmOutboundGroupSession>(olmOutboundGroupSession);
diff --git a/lib/room.cpp b/lib/room.cpp
index 5fdff036..0cf818ce 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -444,7 +444,6 @@ public:
connection->saveCurrentOutboundMegolmSession(
id, *currentOutboundMegolmSession);
- currentOutboundMegolmSession->sessionKey();
addInboundGroupSession(currentOutboundMegolmSession->sessionId(),
currentOutboundMegolmSession->sessionKey(),
q->localUser()->id(), "SELF"_ls);