From 1b5848fb235e7b6fe6bfcd64ce9bc57477df8b64 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Wed, 6 Mar 2019 20:17:33 +0140 Subject: Start new session upon prekey reception --- src/omemo/omemo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 { -- cgit 1.4.1-2-gfad0