From 5474993595d4656e6e56f244571a48dc7950f446 Mon Sep 17 00:00:00 2001
From: Denis Fomin <fominde@gmail.com>
Date: Tue, 27 Sep 2011 16:13:12 +0300
Subject: [PATCH] Fixes #6906 again

---
 src/dialogs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/dialogs.py b/src/dialogs.py
index 6c2b46f6de..2fc321fcc2 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -2481,7 +2481,8 @@ class JoinGroupchatWindow:
                     _('The group chat Jabber ID has not allowed characters.'))
             return
 
-        if gajim.contacts.get_contact(self.account, room_jid):
+        if gajim.contacts.get_contact(self.account, room_jid) and \
+        not gajim.contacts.get_contact(account, room_jid).is_groupchat():
             ErrorDialog(_('This is not a group chat'),
                 _('%s is not the name of a group chat.') % room_jid)
             return
-- 
GitLab