go back with is_groupchat() to detect groupchats. see #6906

This commit is contained in:
Yann Leboulanger 2011-10-02 21:29:23 +02:00
parent 6ea71da276
commit fd1744d181
2 changed files with 2 additions and 2 deletions

View File

@ -2482,7 +2482,7 @@ class JoinGroupchatWindow:
return
if gajim.contacts.get_contact(self.account, room_jid) and \
gajim.contacts.get_contact(self.account, room_jid).is_transport():
gajim.contacts.get_contact(self.account, room_jid).is_groupchat():
ErrorDialog(_('This is not a group chat'),
_('%s is not the name of a group chat.') % room_jid)
return

View File

@ -1903,7 +1903,7 @@ class Interface:
"""
if gajim.contacts.get_contact(account, room_jid) and \
gajim.contacts.get_contact(account, room_jid).is_transport():
gajim.contacts.get_contact(account, room_jid).is_groupchat():
dialogs.ErrorDialog(_('This is not a group chat'),
_('%s is not the name of a group chat.') % room_jid)
return