[client_icons] Fix is_groupchat call

This commit is contained in:
Daniel Brötzmann
2019-06-22 11:56:48 +02:00
parent fa1bfd5c34
commit 6a86834a82

View File

@@ -65,7 +65,7 @@ class ClientsIconsPlugin(GajimPlugin):
@staticmethod @staticmethod
def is_groupchat(contact): def is_groupchat(contact):
if hasattr(contact, 'is_groupchat'): if hasattr(contact, 'is_groupchat'):
return contact.is_groupchat() return contact.is_groupchat
return False return False
def add_tooltip_row(self, tooltip, contact, tooltip_grid): def add_tooltip_row(self, tooltip, contact, tooltip_grid):
@@ -354,7 +354,7 @@ class ClientsIconsPlugin(GajimPlugin):
if not self.config['show_in_roster']: if not self.config['show_in_roster']:
return return
if contact.is_groupchat(): if contact.is_groupchat:
return return
roster = app.interface.roster roster = app.interface.roster
iters = roster._get_contact_iter(event.jid, event.conn.name, contact, iters = roster._get_contact_iter(event.jid, event.conn.name, contact,