Fix #6906 again. is_groupchat() are not working as it should. it checks whether the gc connected(is_groupchat_connected()).

This commit is contained in:
Denis Fomin 2011-09-27 18:16:06 +03:00
parent 2b859c3a66
commit 441eb20a13
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 \
not gajim.contacts.get_contact(self.account, room_jid).is_groupchat():
not gajim.contacts.get_contact(self.account, room_jid).is_transport():
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 \
not gajim.contacts.get_contact(account, room_jid).is_groupchat():
gajim.contacts.get_contact(account, room_jid).is_transport():
dialogs.ErrorDialog(_('This is not a group chat'),
_('%s is not the name of a group chat.') % room_jid)
return