Fix typo
This commit is contained in:
@@ -360,7 +360,7 @@ class Puppet:
|
|||||||
if self.disable_updates:
|
if self.disable_updates:
|
||||||
return False
|
return False
|
||||||
is_main_source = (source.is_relaybot or (self.displayname_source is not None
|
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
|
# 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
|
is_trustworthy_source = isinstance(info, User) and info.phone is None
|
||||||
if not is_main_source and not is_trustworthy_source:
|
if not is_main_source and not is_trustworthy_source:
|
||||||
|
|||||||
Reference in New Issue
Block a user