aboutsummaryrefslogtreecommitdiff
path: root/src/olm.cpp
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-08 16:00:08 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-08 16:04:18 +0100
commit0e988237f6fcb826afc42719adc335dcc7ca0e2e (patch)
tree004312c4b121b2278a5327847db28f0c20639323 /src/olm.cpp
parent532dc0d4e79192a0c7fd1758322f6cae06959859 (diff)
Don't pass a key id when creating a new outbound session
Diffstat (limited to 'src/olm.cpp')
-rw-r--r--src/olm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/olm.cpp b/src/olm.cpp
index ede9c26..65d0648 100644
--- a/src/olm.cpp
+++ b/src/olm.cpp
@@ -447,7 +447,7 @@ size_t olm_remove_one_time_keys(
OlmSession * session
) {
size_t result = from_c(account)->remove_key(
- from_c(session)->bob_one_time_key_id
+ from_c(session)->bob_one_time_key
);
if (result == std::size_t(-1)) {
from_c(account)->last_error = olm::ErrorCode::BAD_MESSAGE_KEY_ID;