mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
remove obvious comments
This commit is contained in:
parent
f9f066417b
commit
034169bb8a
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ impl Service {
|
|||
fn user_was_joined(&self, shortstatehash: u64, user_id: &UserId) -> bool {
|
||||
self.user_membership(shortstatehash, user_id)
|
||||
.map(|s| s == MembershipState::Join)
|
||||
.unwrap_or_default() // Return sensible default, i.e. false
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
/// The user was an invited or joined room member at this state (potentially
|
||||
|
|
@ -97,7 +97,7 @@ impl Service {
|
|||
fn user_was_invited(&self, shortstatehash: u64, user_id: &UserId) -> bool {
|
||||
self.user_membership(shortstatehash, user_id)
|
||||
.map(|s| s == MembershipState::Join || s == MembershipState::Invite)
|
||||
.unwrap_or_default() // Return sensible default, i.e. false
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
||||
/// Whether a server is allowed to see an event through federation, based on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue