Skip to content
Snippets Groups Projects
Commit 246e5490 authored by steve-e's avatar steve-e
Browse files

Improved "is_groupchat" logic. Fixes #4413.

parent 67d38a0b
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment