diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2016-02-29 23:29:20 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2016-02-29 23:29:20 +0300 |
commit | aa9e521076893d10d06dbf661cb0a9da2b5cc524 (patch) | |
tree | 88623f3131e4ec26d4c7caee1b3b27e51c2978fc /src/session.py | |
parent | 3b91f451753a71cbf29eaf06802e8b4134c76153 (diff) |
handle message correction correctly even if we don't print the message instantly in a chat window. Fixes #8220
Diffstat (limited to 'src/session.py')
-rw-r--r-- | src/session.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.py b/src/session.py index afa5f6428..7c27b009c 100644 --- a/src/session.py +++ b/src/session.py @@ -255,7 +255,8 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession): if (not self.control and obj.mtype != 'normal') or \ (obj.mtype == 'normal' and not obj.popup): event = event_t(obj.msgtxt, obj.subject, obj.mtype, obj.timestamp, - obj.encrypted, obj.resource, obj.msg_log_id, xhtml=obj.xhtml, + obj.encrypted, obj.resource, obj.msg_log_id, + correct_id=(obj.id_, obj.correct_id), xhtml=obj.xhtml, session=self, form_node=obj.form_node, displaymarking=obj.displaymarking, sent_forwarded=obj.forwarded and obj.sent, |