pub fn parse_filter_param(
conn: &Connection,
user_id: i64,
raw: Option<&str>,
) -> Result<SyncFilter, MatrixError>Expand description
Resolve the filter query param: a stored filter_id (looked up via
crate::store::get_filter, scoped to user_id — the same isolation
routes::matrix::account::get_filter enforces) or inline JSON (a leading
{). Absent/empty is SyncFilter::default.