Fix state for empty key route

Replace None with Some("") for state_key
This commit is contained in:
Devin Ragotzy 2020-08-25 15:30:25 -04:00
parent 27ffe77823
commit d9a29e3e5c
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ pub fn create_room_route(
content: match preset { content: match preset {
create_room::RoomPreset::PublicChat => { create_room::RoomPreset::PublicChat => {
serde_json::to_value(guest_access::GuestAccessEventContent::new( serde_json::to_value(guest_access::GuestAccessEventContent::new(
// In a public room a joining is the only way to access // In a public room, joining is the only way to access
guest_access::GuestAccess::Forbidden, guest_access::GuestAccess::Forbidden,
)) ))
.expect("event is valid, we just created it") .expect("event is valid, we just created it")

View file

@ -76,7 +76,7 @@ pub fn send_state_event_for_empty_key_route(
&body.content, &body.content,
json, json,
&body.room_id, &body.room_id,
None, Some("".into()),
)? )?
.0 .0
.event_id, .event_id,