Improved "is_groupchat" logic. Fixes #4413.
This commit is contained in:
parent
67d38a0b86
commit
246e549012
|
@ -123,8 +123,9 @@ class Contact:
|
|||
return is_observer
|
||||
|
||||
def is_groupchat(self):
|
||||
if _('Groupchats') in self.groups:
|
||||
return True
|
||||
for account in common.gajim.gc_connected:
|
||||
if self.jid in common.gajim.gc_connected[account]:
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_transport(self):
|
||||
|
|
Loading…
Reference in New Issue