From 70661b70d3bad6c1b48c47b0d4fccf3138e17483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 6 Jul 2018 20:12:50 +0200 Subject: [PATCH] Rename method to something more appropriate --- gajim/common/modules/pep.py | 4 ++-- gajim/common/modules/user_avatar.py | 2 +- gajim/common/modules/user_nickname.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gajim/common/modules/pep.py b/gajim/common/modules/pep.py index 520f7331e..ac7e698a6 100644 --- a/gajim/common/modules/pep.py +++ b/gajim/common/modules/pep.py @@ -134,14 +134,14 @@ class AbstractPEPModule: raise NotImplementedError def _push_event(self, jid, user_pep): - self._update_contacts(jid, user_pep) + self._notification_received(jid, user_pep) app.nec.push_incoming_event( PEPReceivedEvent(None, conn=self._con, jid=str(jid), pep_type=self.name, user_pep=user_pep)) - def _update_contacts(self, jid, user_pep): + def _notification_received(self, jid, user_pep): for contact in app.contacts.get_contacts(self._account, str(jid)): if user_pep: contact.pep[self.name] = user_pep diff --git a/gajim/common/modules/user_avatar.py b/gajim/common/modules/user_avatar.py index c4ac8b083..814216a5f 100644 --- a/gajim/common/modules/user_avatar.py +++ b/gajim/common/modules/user_avatar.py @@ -123,7 +123,7 @@ class UserAvatar(AbstractPEPModule): avatar = info.getAttrs() return avatar or None - def _update_contacts(self, jid, user_pep): + def _notification_received(self, jid, user_pep): avatar = user_pep._pep_specific_data own_jid = self._con.get_own_jid() if avatar is None: diff --git a/gajim/common/modules/user_nickname.py b/gajim/common/modules/user_nickname.py index 7740fc0c8..46d2150b3 100644 --- a/gajim/common/modules/user_nickname.py +++ b/gajim/common/modules/user_nickname.py @@ -66,7 +66,7 @@ class UserNickname(AbstractPEPModule): item.addData(data) return item - def _update_contacts(self, jid, user_pep): + def _notification_received(self, jid, user_pep): for contact in app.contacts.get_contacts(self._account, str(jid)): contact.contact_name = user_pep.get_nick()