diff --git a/src/common/contacts.py b/src/common/contacts.py index af1f5823f..2c136aeb0 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -82,7 +82,7 @@ class Contact: def is_observer(self): # XEP-0162: http://www.xmpp.org/extensions/xep-0162.html is_observer = False - if is_hidden_in_roster() and if contact.sub == 'from': + if is_hidden_in_roster() and contact.sub == 'from': is_observer = True return is_observer