Philipp Hörist pushed to branch master at gajim / gajim
Commits: ad86867a by lovetox at 2021-12-09T20:43:54+01:00 Fix typo when accessing contact module
- - - - -
2 changed files:
- gajim/common/helpers.py - gajim/remote_control.py
Changes:
===================================== gajim/common/helpers.py ===================================== @@ -827,7 +827,7 @@ def load_json(path, key=None, default=None):
def ignore_contact(account, jid): client = app.get_client(account) - contact = client.get_module('Contact').get_contact(jid) + contact = client.get_module('Contacts').get_contact(jid)
ignore_unknown = app.settings.get_account_setting( account, 'ignore_unknown_contacts')
===================================== gajim/remote_control.py ===================================== @@ -569,7 +569,7 @@ def open_chat(self, jid, account, message): for acct in accounts: if app.account_is_available(acct): # account is online client = app.get_client(acct) - contact = client.get_module('Contact').get_contact(jid) + contact = client.get_module('Contacts').get_contact(jid) control = app.window.get_control(acct, jid) if control is not None: connected_account = acct @@ -723,7 +723,7 @@ def remove_contact(self, jid, account): contact_exists = False for account_ in accounts: client = app.get_client(account_) - contact = client.get_module('Contact').get_contact(jid) + contact = client.get_module('Contacts').get_contact(jid) if contact.is_in_roster: client.get_module('Presence').unsubscribe(jid) client.get_module('Roster').delete_item(jid)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ad86867ab7e6fe531e9e24d2823cdac1e...