Use DC_CONTACT_ID_SELF in do_initiate_key_transfer

This commit is contained in:
Alexander Krotov
2019-10-27 02:23:28 +03:00
committed by Floris Bruynooghe
parent 6ac4384769
commit ee81895e1e

View File

@@ -130,7 +130,7 @@ fn do_initiate_key_transfer(context: &Context) -> Result<String> {
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());