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

correctly create session (pm / not pm) when we send a message in a control...

correctly create session (pm / not pm) when we send a message in a control without a session (after disabling E2E). Fixes #4818
parent 52be3170
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,10 @@ class MessageControl:
jid += '/' + self.resource
if not sess:
sess = conn.make_new_session(jid)
if self.type_id == TYPE_PM:
sess = conn.make_new_session(jid, type_='pm')
else:
sess = conn.make_new_session(jid)
self.set_session(sess)
......
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