Improved "is_groupchat" logic. Fixes #4413.

This commit is contained in:
Stephan Erb 2008-11-08 22:00:56 +00:00
parent 67d38a0b86
commit 246e549012
1 changed files with 3 additions and 2 deletions

View File

@ -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):