From ee81895e1e4ea0fd70f9f16e138a5de1a0611ef6 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 27 Oct 2019 02:23:28 +0300 Subject: [PATCH] Use DC_CONTACT_ID_SELF in do_initiate_key_transfer --- src/imex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imex.rs b/src/imex.rs index 1ba925eb1..c576a33b1 100644 --- a/src/imex.rs +++ b/src/imex.rs @@ -130,7 +130,7 @@ fn do_initiate_key_transfer(context: &Context) -> Result { setup_file_content.as_bytes(), )?; - let chat_id = chat::create_by_contact_id(context, 1)?; + let chat_id = chat::create_by_contact_id(context, DC_CONTACT_ID_SELF)?; msg = Message::default(); msg.type_0 = Viewtype::File; msg.param.set(Param::File, setup_file_blob.as_name());