From 6a363678f46d2ef553b15c103274ea76d82f76be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 6 Jul 2018 20:05:57 +0200 Subject: [PATCH] Dont handle all pep events --- gajim/roster_window.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gajim/roster_window.py b/gajim/roster_window.py index b37de2b01..f2d909a62 100644 --- a/gajim/roster_window.py +++ b/gajim/roster_window.py @@ -64,6 +64,7 @@ from gajim.common import helpers from gajim.common import idle from gajim.common.exceptions import GajimGeneralException from gajim.common import i18n +from gajim.common.const import PEPEventType if app.is_installed('GEOCLUE'): from gajim.common import location_listener from gajim.common import ged @@ -2648,6 +2649,13 @@ class RosterWindow: self.remove_contact(jid, obj.conn.name, backend=True) def _nec_pep_received(self, obj): + if obj.user_pep.type_ not in (PEPEventType.ACTIVITY, + PEPEventType.TUNE, + PEPEventType.MOOD, + PEPEventType.LOCATION, + PEPEventType.NICKNAME): + return + if obj.jid == app.get_jid_from_account(obj.conn.name): self.draw_account(obj.conn.name)