support version 2 of message carbons
This commit is contained in:
parent
5ef5a04787
commit
a496c8004d
|
@ -1047,7 +1047,7 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
||||||
namespace=nbxmpp.NS_CARBONS)
|
namespace=nbxmpp.NS_CARBONS)
|
||||||
# Be sure it comes from one of our resource, else ignore forward element
|
# Be sure it comes from one of our resource, else ignore forward element
|
||||||
if carbon_marker and self.jid == gajim.get_jid_from_account(account):
|
if carbon_marker and self.jid == gajim.get_jid_from_account(account):
|
||||||
forward_tag = self.stanza.getTag('forwarded',
|
forward_tag = carbon_marker.getTag('forwarded',
|
||||||
namespace=nbxmpp.NS_FORWARD)
|
namespace=nbxmpp.NS_FORWARD)
|
||||||
if forward_tag:
|
if forward_tag:
|
||||||
msg = forward_tag.getTag('message')
|
msg = forward_tag.getTag('message')
|
||||||
|
|
Loading…
Reference in New Issue