Use misc module to parse correction
This commit is contained in:
parent
9f65bca3d3
commit
d4fd621d11
1 changed files with 4 additions and 6 deletions
|
@ -863,9 +863,8 @@ class DecryptedMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
||||||
|
|
||||||
self.get_oob_data(self.stanza)
|
self.get_oob_data(self.stanza)
|
||||||
|
|
||||||
replace = self.stanza.getTag('replace', namespace=nbxmpp.NS_CORRECT)
|
from gajim.common.modules.misc import parse_correction
|
||||||
if replace:
|
self.correct_id = parse_correction(self.stanza)
|
||||||
self.correct_id = replace.getAttr('id')
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -978,9 +977,8 @@ class GcMessageReceivedEvent(nec.NetworkIncomingEvent):
|
||||||
[self.stanza, self.msg_obj], 0)
|
[self.stanza, self.msg_obj], 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
replace = self.stanza.getTag('replace', namespace=nbxmpp.NS_CORRECT)
|
from gajim.common.modules.misc import parse_correction
|
||||||
if replace:
|
self.correct_id = parse_correction(self.stanza)
|
||||||
self.correct_id = replace.getAttr('id')
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue