refactor: Take away some methods from public

This commit is contained in:
Andriy Kushnir (Orhideous) 2022-11-28 13:43:33 +02:00
parent b023866903
commit 179aafc974
No known key found for this signature in database
GPG key ID: 62E078AB621B0D15

View file

@ -130,7 +130,7 @@ impl Service {
}
/// The user was a joined member at this state (potentially in the past)
pub fn user_was_joined(&self, shortstatehash: u64, user_id: &UserId) -> bool {
fn user_was_joined(&self, shortstatehash: u64, user_id: &UserId) -> bool {
self.db
.user_membership(shortstatehash, user_id)
.map(|s| s == MembershipState::Join)
@ -139,7 +139,7 @@ impl Service {
/// The user was an invited or joined room member at this state (potentially
/// in the past)
pub fn user_was_invited(&self, shortstatehash: u64, user_id: &UserId) -> bool {
fn user_was_invited(&self, shortstatehash: u64, user_id: &UserId) -> bool {
self.db
.user_membership(shortstatehash, user_id)
.map(|s| s == MembershipState::Join || s == MembershipState::Invite)