From 441eb20a13fdc91d95d219dabd6fc3b22af58fc8 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Tue, 27 Sep 2011 18:16:06 +0300 Subject: [PATCH] Fix #6906 again. is_groupchat() are not working as it should. it checks whether the gc connected(is_groupchat_connected()). --- 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 68f953a0a..bb80a894e 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 \ - 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 diff --git a/src/gui_interface.py b/src/gui_interface.py index 92bc7a8be..fa7756857 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 \ - 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