Skip to main contentModule account_data
Source use std::collections::BTreeMap; ๐ use axum::extract::State; ๐ use futures::StreamExt; ๐ use ruma::OwnedRoomId; ๐ use ruma::UserId; ๐ use ruma::events::AnyGlobalAccountDataEventContent; ๐ use ruma::events::AnyRawAccountDataEvent; ๐ use ruma::events::AnyRoomAccountDataEventContent; ๐ use ruma::serde::Raw; ๐ use synapse_admin_api::users::account_data::v1 as account_data; ๐ use tuwunel_core::Err; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::utils::ReadyExt; ๐ use tuwunel_core::utils::stream::BroadbandExt; ๐ use crate::Ruma; ๐ use crate::require_admin; ๐
- admin_account_data_route ๐
GET /_synapse/admin/v1/users/{user_id}/accountdata- room_account_data ๐
- split_type_content ๐
- Splits a raw account-data event into its
type key and the content
re-cast to the content type, dropping any event missing either field.
- GlobalData ๐
- RoomData ๐