client-api: export validate_and_add_event_id
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
8210e8c42e
commit
1287a86c05
2 changed files with 2 additions and 2 deletions
|
@ -1314,7 +1314,7 @@ async fn make_join_request(
|
||||||
make_join_response_and_server
|
make_join_response_and_server
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn validate_and_add_event_id(
|
pub async fn validate_and_add_event_id(
|
||||||
pdu: &RawJsonValue, room_version: &RoomVersionId, pub_key_map: &RwLock<BTreeMap<String, BTreeMap<String, Base64>>>,
|
pdu: &RawJsonValue, room_version: &RoomVersionId, pub_key_map: &RwLock<BTreeMap<String, BTreeMap<String, Base64>>>,
|
||||||
) -> Result<(OwnedEventId, CanonicalJsonObject)> {
|
) -> Result<(OwnedEventId, CanonicalJsonObject)> {
|
||||||
let mut value: CanonicalJsonObject = serde_json::from_str(pdu.get()).map_err(|e| {
|
let mut value: CanonicalJsonObject = serde_json::from_str(pdu.get()).map_err(|e| {
|
||||||
|
|
|
@ -47,7 +47,7 @@ pub(super) use filter::*;
|
||||||
pub(super) use keys::*;
|
pub(super) use keys::*;
|
||||||
pub(super) use media::*;
|
pub(super) use media::*;
|
||||||
pub(super) use membership::*;
|
pub(super) use membership::*;
|
||||||
pub use membership::{join_room_by_id_helper, leave_all_rooms, leave_room};
|
pub use membership::{join_room_by_id_helper, leave_all_rooms, leave_room, validate_and_add_event_id};
|
||||||
pub(super) use message::*;
|
pub(super) use message::*;
|
||||||
pub(super) use presence::*;
|
pub(super) use presence::*;
|
||||||
pub(super) use profile::*;
|
pub(super) use profile::*;
|
||||||
|
|
Loading…
Add table
Reference in a new issue