Fix random bugs and update mautrix-python

This commit is contained in:
Tulir Asokan
2020-10-24 21:13:57 +03:00
parent a3f6bc2acb
commit 70a6b847e2
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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"