Send message #4

Merged
phoenix merged 26 commits from send_message into v0.3.x 2026-06-04 20:37:40 -04:00
Showing only changes of commit 4d3bb7778a - Show all commits
+2 -5
View File
@@ -38,10 +38,7 @@ pub async fn send_mssage(
// params.insert("PersistentAction", "string"); // params.insert("PersistentAction", "string");
params.insert("ShortenUrls", "true"); params.insert("ShortenUrls", "true");
let date = match param.schedule_at { let date = match param.schedule_at {
Some(date_value) => { Some(date_value) => date_value.to_string(),
let converted = date_value.to_string();
converted
}
None => String::new(), None => String::new(),
}; };
if param.schedule && is_scheduleable(&Some(now), &param.schedule_at) { if param.schedule && is_scheduleable(&Some(now), &param.schedule_at) {
@@ -130,7 +127,7 @@ fn is_scheduleable(
.unwrap() .unwrap()
.checked_add(time::Duration::seconds(300)) .checked_add(time::Duration::seconds(300))
.unwrap(); .unwrap();
if *schedule_at > early { true } else { false } *schedule_at > early
} }
None => false, None => false,
} }