From fd1744d18140b6ab96d6b57f2e34151e62dd408d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 2 Oct 2011 21:29:23 +0200 Subject: [PATCH] go back with is_groupchat() to detect groupchats. see #6906 --- src/dialogs.py | 2 +- src/gui_interface.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 0a016a0f0..324f13dc7 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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 diff --git a/src/gui_interface.py b/src/gui_interface.py index fa7756857..ef551d49a 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -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