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:
@@ -50,8 +50,8 @@ pub async fn server_can_see_event(
|
|||||||
.await
|
.await
|
||||||
},
|
},
|
||||||
| _ => {
|
| _ => {
|
||||||
error!("Unknown history visibility {history_visibility}");
|
debug_info!(%room_id, "Unknown history visibility, defaulting to shared: {history_visibility:?}");
|
||||||
false
|
true
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,8 +119,8 @@ pub async fn user_can_see_event(
|
|||||||
self.user_was_joined(shortstatehash, user_id).await
|
self.user_was_joined(shortstatehash, user_id).await
|
||||||
},
|
},
|
||||||
| _ => {
|
| _ => {
|
||||||
error!("Unknown history visibility {history_visibility}");
|
debug_info!(%room_id, "Unknown history visibility, defaulting to shared: {history_visibility:?}");
|
||||||
false
|
currently_member
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user