refactor: Take away some methods from public

This commit is contained in:
Andriy Kushnir (Orhideous) 2022-11-28 13:43:33 +02:00 committed by Nyaaori
parent 98e24722ad
commit 2717bdcf2e
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E

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)