Fix create_join_event and create_join_event_template endpoints
This commit is contained in:
parent
6df02fc7e2
commit
58abd51d1e
@ -3,6 +3,7 @@
|
||||
Breaking Changes:
|
||||
|
||||
* Replace `directory::get_public_rooms::v1::{PublicRoomsChunk, RoomNetwork}` with types from `ruma_common::directory`
|
||||
* Wrap `PduStub`s in `membership::create_join_event` in `Raw`
|
||||
|
||||
Improvements:
|
||||
|
||||
@ -17,6 +18,7 @@ Improvements:
|
||||
query_keys::v1,
|
||||
},
|
||||
membership::create_invite::{v1, v2},
|
||||
membership::create_join_event::v2,
|
||||
```
|
||||
|
||||
# 0.0.3
|
||||
@ -31,7 +33,6 @@ Improvements:
|
||||
|
||||
```
|
||||
authorization::get_event_authorization::v1,
|
||||
membership::create_join_event::v2,
|
||||
openid::get_openid_userinfo::v1,
|
||||
query::get_profile_information::v1,
|
||||
transactions::send_transaction_message::v1,
|
||||
|
@ -1,6 +1,7 @@
|
||||
//! Endpoint to send join events to remote homeservers.
|
||||
|
||||
pub mod v1;
|
||||
pub mod v2;
|
||||
|
||||
use ruma_common::Raw;
|
||||
use ruma_events::pdu::Pdu;
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
use ruma_events::pdu::PduStub;
|
||||
use ruma_common::Raw;
|
||||
use ruma_identifiers::{EventId, RoomId};
|
||||
|
||||
use super::RoomState;
|
||||
@ -26,11 +27,11 @@ ruma_api! {
|
||||
|
||||
/// PDU type without event and room IDs.
|
||||
#[ruma_api(body)]
|
||||
pub pdu_stub: PduStub,
|
||||
pub pdu_stub: Raw<PduStub>,
|
||||
}
|
||||
|
||||
response: {
|
||||
/// Full state of the room.
|
||||
/// Full state and auth chain of the room prior to the join event.
|
||||
#[ruma_api(body)]
|
||||
#[serde(with = "crate::serde::room_state")]
|
||||
pub room_state: RoomState,
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
use ruma_events::pdu::PduStub;
|
||||
use ruma_common::Raw;
|
||||
use ruma_identifiers::{EventId, RoomId};
|
||||
|
||||
use super::RoomState;
|
||||
@ -26,11 +27,12 @@ ruma_api! {
|
||||
|
||||
/// PDU type without event and room IDs.
|
||||
#[ruma_api(body)]
|
||||
pub pdu_stub: PduStub,
|
||||
pub pdu_stub: Raw<PduStub>,
|
||||
}
|
||||
|
||||
response: {
|
||||
/// Full state of the room.
|
||||
#[ruma_api(body)]
|
||||
pub room_state: RoomState,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user