Skip to content
Snippets Groups Projects
Commit d2669df7 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix some resource problems. see #3799

parent cdffa946
No related branches found
No related tags found
No related merge requests found
......@@ -1144,6 +1144,12 @@ class ChatControl(ChatControlBase):
if not session:
session = gajim.connections[self.account]. \
find_controlless_session(self.contact.jid)
if session:
# Don't use previous session if we want to a specific resource
# and it's not the same
j, r = gajim.get_room_and_nick_from_fjid(str(session.jid))
if resource and resource != r:
session = None
if session:
session.control = self
......
......@@ -2670,7 +2670,7 @@ class Interface:
mw = self.msg_win_mgr.get_window(fjid, account)
if not mw:
mw = self.msg_win_mgr.create_window(contact, account, type_)
mw = self.msg_win_mgr.create_window(contact, account, type_, resource)
chat_control = ChatControl(mw, contact, account, session, resource)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment