Fix state for empty key route

Replace None with Some("") for state_key
next
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 {
create_room::RoomPreset::PublicChat => {
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,
))
.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,
json,
&body.room_id,
None,
Some("".into()),
)?
.0
.event_id,