support version 2 of message carbons

This commit is contained in:
Yann Leboulanger 2013-07-18 14:03:13 +02:00
parent 9f94caf4ec
commit f77f5f6646
1 changed files with 1 additions and 1 deletions

View File

@ -1048,7 +1048,7 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
namespace=nbxmpp.NS_CARBONS)
# 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):
forward_tag = self.stanza.getTag('forwarded',
forward_tag = carbon_marker.getTag('forwarded',
namespace=nbxmpp.NS_FORWARD)
if forward_tag:
msg = forward_tag.getTag('message')