Skip to content
Snippets Groups Projects
Unverified Commit b0ea6927 authored by Timo Kösters's avatar Timo Kösters
Browse files

fix: malformed pushrule error when event does not trigger any actions

parent 588de12d
No related branches found
No related tags found
No related merge requests found
......@@ -216,16 +216,11 @@ pub async fn send_push_notice(
notify = Some(n);
}
let notify = notify.ok_or_else(|| {
Error::bad_database(
r#"Malformed pushrule contains none of these actions: ["dont_notify", "notify", "coalesce"]"#,
)
})?;
if notify {
if notify == Some(true) {
send_notice(unread, pusher, tweaks, pdu, db).await?;
}
// Else the event triggered no actions
Ok(())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment