Skip to content

Commit

Permalink
Merge branch 'main' of github.com:WBOR-91-1-FM/wbor-studio-dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
CaspianA1 committed Sep 30, 2024
2 parents 520d450 + 0ccb4c5 commit 5c28dc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dashboard_defs/twilio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,12 @@ impl TwilioStateData {
}

fn make_message_display_text(age_data: MessageAgeData, body: &str, maybe_from: Option<&str>) -> String {
let trimmed_body = body.trim();
let display_text = if let Some((unit_name, plural_suffix, unit_amount)) = age_data {
format!("{unit_amount} {unit_name}{plural_suffix} ago: '{body}'")
format!("{unit_amount} {unit_name}{plural_suffix} ago: '{trimmed_body}'")
}
else {
format!("Right now: '{body}'")
format!("Right now: '{trimmed_body}'")
};

//////////
Expand Down

0 comments on commit 5c28dc3

Please sign in to comment.