Commit d4fd621d authored by Philipp Hörist's avatar Philipp Hörist

Use misc module to parse correction

parent 9f65bca3
......@@ -863,9 +863,8 @@ class DecryptedMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
self.get_oob_data(self.stanza)
replace = self.stanza.getTag('replace', namespace=nbxmpp.NS_CORRECT)
if replace:
self.correct_id = replace.getAttr('id')
from gajim.common.modules.misc import parse_correction
self.correct_id = parse_correction(self.stanza)
return True
......@@ -978,9 +977,8 @@ class GcMessageReceivedEvent(nec.NetworkIncomingEvent):
[self.stanza, self.msg_obj], 0)
return
replace = self.stanza.getTag('replace', namespace=nbxmpp.NS_CORRECT)
if replace:
self.correct_id = replace.getAttr('id')
from gajim.common.modules.misc import parse_correction
self.correct_id = parse_correction(self.stanza)
return True
......
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