default shared history vis on unknown visibilities, drop needless error log

Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
June Clementine Strawberry 2025-04-02 22:46:01 -04:00
parent 74012c5289
commit 1036f8dfa8
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -50,8 +50,8 @@ pub async fn server_can_see_event(
.await
},
| _ => {
error!("Unknown history visibility {history_visibility}");
false
debug_info!(%room_id, "Unknown history visibility, defaulting to shared: {history_visibility:?}");
true
},
}
}

View file

@ -119,8 +119,8 @@ pub async fn user_can_see_event(
self.user_was_joined(shortstatehash, user_id).await
},
| _ => {
error!("Unknown history visibility {history_visibility}");
false
debug_info!(%room_id, "Unknown history visibility, defaulting to shared: {history_visibility:?}");
currently_member
},
}
}