Skip to content

Commit

Permalink
fix: filter out empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sitiom committed Jan 24, 2024
1 parent c2ca6b0 commit 7391cfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async fn idle_and_listen_to_neo_notifs() -> Result<()> {
.try_collect()
.await?;
let messages = messages.into_iter()
.filter(|m| m.body().is_some())
.map(|m| {
let mail = parse_mail(m.body().unwrap()).unwrap();
let body = mail.get_body().unwrap();
Expand Down

0 comments on commit 7391cfb

Please sign in to comment.