fix(appservice): Remove erroneous ? operator

This commit is contained in:
Amanda Graven
2022-06-14 15:02:55 +02:00
parent 5243091bec
commit de04aba5b3
+1 -1
View File
@@ -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")