feat: Remove MSC4010 support

This commit is contained in:
timedout 2026-02-27 17:03:19 +00:00
parent 8ce83a8a14
commit 6adb99397e
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -126,12 +126,6 @@ async fn set_account_data(
))); )));
} }
if event_type_s == GlobalAccountDataEventType::PushRules.to_cow_str() {
return Err!(Request(BadJson(
"This endpoint cannot be used for setting/configuring push rules."
)));
}
let data: serde_json::Value = serde_json::from_str(data.get()) let data: serde_json::Value = serde_json::from_str(data.get())
.map_err(|e| err!(Request(BadJson(warn!("Invalid JSON provided: {e}")))))?; .map_err(|e| err!(Request(BadJson(warn!("Invalid JSON provided: {e}")))))?;