Commit 6b723a89 authored by Philipp Hörist's avatar Philipp Hörist

Copy JID before modifying

parent 14d6074f
......@@ -225,7 +225,7 @@ class Message(BaseModule):
NetworkEvent('decrypted-message-received', **event_attr))
def _message_error_received(self, _con, _stanza, properties):
jid = properties.jid
jid = properties.jid.copy()
if not properties.is_muc_pm:
jid.setBare()
......
......@@ -64,7 +64,7 @@ class Receipts(BaseModule):
properties.jid,
properties.receipt.id)
jid = properties.jid
jid = properties.jid.copy()
if not properties.is_muc_pm:
jid.setBare()
......
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