Skip to content

Commit

Permalink
Simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ReagentX committed May 8, 2024
1 parent 685ec6f commit a7e8eff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions imessage-exporter/src/app/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,8 @@ impl Config {
destination_caller_id: &'b Option<String>,
) -> &'a str {
if is_from_me {
if let Some(caller_id) = destination_caller_id {
if self.options.use_caller_id {
return caller_id;
}
if self.options.use_caller_id {
return destination_caller_id.as_deref().unwrap_or(ME);
}
return self.options.custom_name.as_deref().unwrap_or(ME);
} else if let Some(handle_id) = handle_id {
Expand Down

0 comments on commit a7e8eff

Please sign in to comment.