Commit 51a4c4b5 authored by Philipp Hörist's avatar Philipp Hörist

MAM: Display corrected messages on MAM catchup

This shows corrected messages correctly in groupchat when we
receive the messages via MAM
parent c6e7f862
......@@ -1152,6 +1152,7 @@ class MamGcMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
return False
self.unique_id = self.get_stanza_id(self.result, query=True)
self.message_id = self.msg_.getID()
# Check for duplicates
if app.logger.find_stanza_id(account,
......
......@@ -1107,8 +1107,9 @@ class GroupchatControl(ChatControlBase):
return
self.print_conversation(
obj.msgtxt, contact=obj.nick,
tim=obj.timestamp, encrypted=obj.encrypted,
msg_stanza_id=obj.unique_id,
tim=obj.timestamp, correct_id=obj.correct_id,
encrypted=obj.encrypted,
msg_stanza_id=obj.message_id,
additional_data=obj.additional_data)
def _nec_gc_message_received(self, obj):
......
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