mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +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(),
|
||||
)?;
|
||||
|
||||
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());
|
||||
|
||||
Reference in New Issue
Block a user