fix receiving a carbon of a sent message without a from.
This commit is contained in:
parent
a496c8004d
commit
975bf972eb
|
@ -1054,7 +1054,10 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
||||||
self.stanza = nbxmpp.Message(node=msg)
|
self.stanza = nbxmpp.Message(node=msg)
|
||||||
if carbon_marker.getName() == 'sent':
|
if carbon_marker.getName() == 'sent':
|
||||||
to = self.stanza.getTo()
|
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.stanza.setFrom(to)
|
||||||
self.sent = True
|
self.sent = True
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue