Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-06-10 11:24:22 +0400
committerYann Leboulanger <asterix@lagaule.org>2010-06-10 11:24:22 +0400
commit3f4194e1a826123728cc097f749997480bc58dcd (patch)
treeb516847b8604b8667924623ed9d69f044112badb
parent62710e906a668b571cd9e62c3862c074faab0be1 (diff)
treat incoming messages from a groupchat jid as a groupchat message
-rw-r--r--src/common/connection_handlers.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index a42f17cbc..b0897f0f1 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -1484,7 +1484,7 @@ ConnectionCaps, ConnectionHandlersBase, ConnectionJingle):
thread_id = msg.getThread()
- if not mtype:
+ if not mtype or mtype not in ('chat', 'groupchat', 'error'):
mtype = 'normal'
msgtxt = msg.getBody()
@@ -1493,6 +1493,14 @@ ConnectionCaps, ConnectionHandlersBase, ConnectionJingle):
xep_200_encrypted = msg.getTag('c', namespace=common.xmpp.NS_STANZA_CRYPTO)
session = None
+ gc_control = gajim.interface.msg_win_mgr.get_gc_control(jid, self.name)
+ if not gc_control and \
+ jid in gajim.interface.minimized_controls[self.name]:
+ gc_control = gajim.interface.minimized_controls[self.name][jid]
+
+ if gc_control and jid == frm: # message from a gc without a resource
+ mtype = 'groupchat'
+
if mtype != 'groupchat':
session = self.get_or_create_session(frm, thread_id)