From ee4bdfef137d391f7d16897004c56a39ffd1cf88 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Tue, 29 Oct 2024 20:50:09 -0400 Subject: [PATCH] Filter to display inbound messages only --- src/dashboard_defs/twilio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dashboard_defs/twilio.rs b/src/dashboard_defs/twilio.rs index 2692e7e..ea0a4d1 100644 --- a/src/dashboard_defs/twilio.rs +++ b/src/dashboard_defs/twilio.rs @@ -364,7 +364,7 @@ impl Updatable for TwilioStateData { let time_sent = DateTime::parse_from_rfc2822(unparsed_time_sent).unwrap(); // TODO: see that the manual date filtering logic works - if time_sent >= history_cutoff_time { + if time_sent >= history_cutoff_time && message_field("direction") == "inbound" { let id = message_field("uri"); // If a key on the heap already existed, reuse it