fix: Default to Shared history visibility for s2s permissions, per spec

This commit is contained in:
Nyaaori 2022-11-26 13:33:32 +01:00
parent d47e1761ec
commit 5ae551b101
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E

View file

@ -108,7 +108,7 @@ impl Service {
.state_get_content(shortstatehash, &StateEventType::RoomHistoryVisibility, "")? .state_get_content(shortstatehash, &StateEventType::RoomHistoryVisibility, "")?
.map(|content| match content.get("history_visibility") { .map(|content| match content.get("history_visibility") {
Some(visibility) => HistoryVisibility::from(visibility.as_str().unwrap_or("")), Some(visibility) => HistoryVisibility::from(visibility.as_str().unwrap_or("")),
None => HistoryVisibility::Invited, None => HistoryVisibility::Shared,
}); });
let visibility = match history_visibility { let visibility = match history_visibility {