This commit is contained in:
Tulir Asokan
2019-05-15 20:16:04 +03:00
parent ce92cd31bf
commit 5bbadbbdc8
+1 -1
View File
@@ -360,7 +360,7 @@ class Puppet:
if self.disable_updates:
return False
is_main_source = (source.is_relaybot or (self.displayname_source is not None
and self.displayname_source != source.tgid))
and self.displayname_source == source.tgid))
# No phone -> not in contact list -> can't set custom name -> name is trustworthy
is_trustworthy_source = isinstance(info, User) and info.phone is None
if not is_main_source and not is_trustworthy_source: