diff options
author | Paul Fariello <paul@fariello.eu> | 2019-03-06 20:17:33 +0140 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 16:31:45 +0200 |
commit | 1b5848fb235e7b6fe6bfcd64ce9bc57477df8b64 (patch) | |
tree | 109017da7bd3e261203b3fae3400ed7abfe9b672 | |
parent | bf8b89c568cbc6e2bc2c7dfe058b13a6ec33215a (diff) | |
download | profani-tty-1b5848fb235e7b6fe6bfcd64ce9bc57477df8b64.tar.gz |
Start new session upon prekey reception
-rw-r--r-- | src/omemo/omemo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c index b7c31cd6..3fadefd4 100644 --- a/src/omemo/omemo.c +++ b/src/omemo/omemo.c @@ -573,6 +573,7 @@ omemo_on_message_recv(const char *const from, uint32_t sid, if (key->prekey) { pre_key_signal_message *message; + omemo_bundle_request(from, sid, omemo_start_device_session_handle_bundle, free, strdup(from)); pre_key_signal_message_deserialize(&message, key->data, key->length, omemo_ctx.signal); res = session_cipher_decrypt_pre_key_signal_message(cipher, message, NULL, &plaintext_key); } else { |