From 5bbadbbdc8b6141a69f9ff91d876fffc5b5537fe Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 15 May 2019 20:16:04 +0300 Subject: [PATCH] Fix typo --- mautrix_telegram/puppet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/puppet.py b/mautrix_telegram/puppet.py index 4b2a5937..7676a251 100644 --- a/mautrix_telegram/puppet.py +++ b/mautrix_telegram/puppet.py @@ -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: