Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardicus committed Oct 6, 2024
1 parent f97c574 commit 03ffaf0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ async fn cb_chat(public_key: String, message: String) {
};
match PGPEnCryptOwned::new_from_vec(&pub_key_decoded) {
Ok(pub_encro) => {
let (chat_id, chat_view) = format_chat_msg(&message, &pub_encro);
let (mut chat_id, chat_view) = format_chat_msg(&message, &pub_encro);
let fingerprint = short_fingerprint(&pub_encro.get_public_key_fingerprint());
chat_id.push_str(" ");
chat_id.push_str(&fingerprint);
println_chat_message(chat_id, chat_view).await;
}
_ => {}
Expand Down Expand Up @@ -636,9 +639,14 @@ async fn launch_terminal_program(
let fingerprint = session.get_fingerprint().await;
let userid = session.get_userid().await;

let (chat_id, chat_view) =
let (_, chat_view) =
format_chat_msg_fmt(&input, &userid, &fingerprint);

let mut chat_id = pub_encro.get_userid();
let fingerprint = short_fingerprint(
&pub_encro.get_public_key_fingerprint(),
);
chat_id.push_str(" ");
chat_id.push_str(&fingerprint);
println_chat_message(chat_id, chat_view).await;
}
_ => {}
Expand Down

0 comments on commit 03ffaf0

Please sign in to comment.