base: Fix a typo.

master
Damir Jelić 2021-01-04 18:34:23 +01:00
parent 22b13c369b
commit f3acf582ec
1 changed files with 2 additions and 2 deletions

View File

@ -163,10 +163,10 @@ impl Room {
}
pub fn is_public(&self) -> bool {
matches!(self.joine_rules(), JoinRule::Public)
matches!(self.join_rule(), JoinRule::Public)
}
pub fn joine_rules(&self) -> JoinRule {
pub fn join_rule(&self) -> JoinRule {
self.inner.read().unwrap().base_info.join_rule.clone()
}