Skip to content

Commit

Permalink
fix(appservice): Remove erroneous ? operator
Browse files Browse the repository at this point in the history
  • Loading branch information
agraven committed Jun 14, 2022
1 parent 5243091 commit de04aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-appservice/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl<'a> VirtualUserBuilder<'a> {
}

let user_id = UserId::parse_with_server_name(self.localpart, &self.appservice.server_name)?;
if !(self.appservice.user_id_is_in_namespace(&user_id)?
if !(self.appservice.user_id_is_in_namespace(&user_id)
|| self.localpart == self.appservice.registration.sender_localpart)
{
warn!("Virtual client id '{user_id}' is not in the namespace")
Expand Down

0 comments on commit de04aba

Please sign in to comment.