mirror of
https://github.com/chatmail/core.git
synced 2026-05-14 04:16:30 +03:00
Use DC_CONTACT_ID_SELF in do_initiate_key_transfer
This commit is contained in:
committed by
Floris Bruynooghe
parent
6ac4384769
commit
ee81895e1e
@@ -130,7 +130,7 @@ fn do_initiate_key_transfer(context: &Context) -> Result<String> {
|
|||||||
setup_file_content.as_bytes(),
|
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 = Message::default();
|
||||||
msg.type_0 = Viewtype::File;
|
msg.type_0 = Viewtype::File;
|
||||||
msg.param.set(Param::File, setup_file_blob.as_name());
|
msg.param.set(Param::File, setup_file_blob.as_name());
|
||||||
|
|||||||
Reference in New Issue
Block a user