Skip to main content

recent_messages

Function recent_messages 

Source
pub async fn recent_messages(
    host: &dyn GotifyHost,
    cfg: &GotifyConfig,
    applications: &[String],
    min_priority: Option<u8>,
    limit: usize,
) -> Result<Vec<GotifyRecent>>
Expand description

The most recent notifications, newest first, filtered by application NAME (empty = any) and min_priority (None = any), capped at limit. Fetches the newest /message window plus /application (for appid-> name), then narrows locally - Gotify’s /message filters by neither.