Commit fa5c3525 authored by Philipp Hörist's avatar Philipp Hörist

Fix invalid JID

Fixes #9752
parent d4b9b496
Pipeline #3856 passed with stages
in 3 minutes and 4 seconds
......@@ -71,8 +71,10 @@ class ChatControlSession:
self.jid.getStripped())
def get_to(self):
to = str(self.jid)
return app.get_jid_without_resource(to) + '/' + self.resource
bare_jid = self.jid.getBare()
if not self.resource:
return bare_jid
return bare_jid + '/' + self.resource
def _nec_decrypted_message_received(self, obj):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment