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

fix receiving a carbon of a sent message without a from.

parent f77f5f66
No related branches found
No related tags found
No related merge requests found
......@@ -1055,7 +1055,10 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
self.stanza = nbxmpp.Message(node=msg)
if carbon_marker.getName() == 'sent':
to = self.stanza.getTo()
self.stanza.setTo(self.stanza.getFrom())
frm = self.stanza.getFrom()
if not frm:
frm = gajim.get_jid_from_account(account)
self.stanza.setTo(frm)
self.stanza.setFrom(to)
self.sent = True
try:
......
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