Fix random bugs and update mautrix-python
This commit is contained in:
@@ -262,7 +262,7 @@ class Puppet(BasePuppet):
|
||||
allow_because = "user is bot"
|
||||
elif self.displayname_source == source.tgid:
|
||||
allow_because = "user is the primary source"
|
||||
elif not info.contact:
|
||||
elif not isinstance(info, UpdateUserName) and not info.contact:
|
||||
allow_because = "user is not a contact"
|
||||
elif self.displayname_source is None:
|
||||
allow_because = "no primary source set"
|
||||
|
||||
Reference in New Issue
Block a user