Improved "is_groupchat" logic. Fixes #4413.
This commit is contained in:
parent
67d38a0b86
commit
246e549012
1 changed files with 3 additions and 2 deletions
|
@ -123,8 +123,9 @@ class Contact:
|
||||||
return is_observer
|
return is_observer
|
||||||
|
|
||||||
def is_groupchat(self):
|
def is_groupchat(self):
|
||||||
if _('Groupchats') in self.groups:
|
for account in common.gajim.gc_connected:
|
||||||
return True
|
if self.jid in common.gajim.gc_connected[account]:
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def is_transport(self):
|
def is_transport(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue