fixed opening chat with multiple resources

This commit is contained in:
Brendan Taylor 2008-05-14 02:20:31 +00:00
parent 63d6c2875e
commit 58478b032d
1 changed files with 2 additions and 2 deletions

View File

@ -2920,9 +2920,9 @@ class Interface:
conn = gajim.connections[account] conn = gajim.connections[account]
if not session and contact.jid in conn.sessions: if not session and fjid in conn.sessions:
sessions = filter(lambda s: isinstance(s, ChatControlSession), sessions = filter(lambda s: isinstance(s, ChatControlSession),
conn.sessions[contact.jid].values()) conn.sessions[fjid].values())
# look for an existing session with a chat control # look for an existing session with a chat control
for s in sessions: for s in sessions: