Skip to content
Snippets Groups Projects
Commit bd7bac57 authored by Brendan Taylor's avatar Brendan Taylor
Browse files

partial fix for renegotiating pm e2e sessions after one party

disconnects
parent 6e20ce60
No related branches found
No related tags found
No related merge requests found
...@@ -2583,7 +2583,7 @@ class ChatControl(ChatControlBase): ...@@ -2583,7 +2583,7 @@ class ChatControl(ChatControlBase):
if not self.session: if not self.session:
fjid = self.contact.get_full_jid() fjid = self.contact.get_full_jid()
new_sess = gajim.connections[self.account].make_new_session(fjid) new_sess = gajim.connections[self.account].make_new_session(fjid, type_=self.type_id)
self.set_session(new_sess) self.set_session(new_sess)
self.session.negotiate_e2e(False) self.session.negotiate_e2e(False)
......
...@@ -1350,6 +1350,8 @@ sent a message to.''' ...@@ -1350,6 +1350,8 @@ sent a message to.'''
return None return None
def make_new_session(self, jid, thread_id=None, type_='chat', cls=None): def make_new_session(self, jid, thread_id=None, type_='chat', cls=None):
'''create and register a new session. thread_id=None to generate one.
type_ should be 'chat' or 'pm'.'''
if not cls: if not cls:
cls = gajim.default_session_type cls = gajim.default_session_type
......
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