mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-06-27 16:35:59 +00:00
refactor: Take away some methods from public
This commit is contained in:
parent
98e24722ad
commit
2717bdcf2e
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ impl Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The user was a joined member at this state (potentially in the past)
|
/// 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
|
self.db
|
||||||
.user_membership(shortstatehash, user_id)
|
.user_membership(shortstatehash, user_id)
|
||||||
.map(|s| s == MembershipState::Join)
|
.map(|s| s == MembershipState::Join)
|
||||||
|
@ -139,7 +139,7 @@ impl Service {
|
||||||
|
|
||||||
/// The user was an invited or joined room member at this state (potentially
|
/// The user was an invited or joined room member at this state (potentially
|
||||||
/// in the past)
|
/// 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
|
self.db
|
||||||
.user_membership(shortstatehash, user_id)
|
.user_membership(shortstatehash, user_id)
|
||||||
.map(|s| s == MembershipState::Join || s == MembershipState::Invite)
|
.map(|s| s == MembershipState::Join || s == MembershipState::Invite)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue