From e5398e68e97b56f1c1daa8fe104208862c66900f Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 16 Apr 2021 19:25:57 +0200 Subject: fix: correction time in one to one tabs (fix #3532) --- poezio/core/handlers.py | 2 +- poezio/text_buffer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index e6fbee05..a8226541 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -414,7 +414,7 @@ class HandlerCore: body, replaced_id, message['id'], - time=None, + time=date, jid=jid, nickname=remote_nick) return True diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py index 48ec1e21..c25c172c 100644 --- a/poezio/text_buffer.py +++ b/poezio/text_buffer.py @@ -287,7 +287,7 @@ class TextBuffer: 'sent by the same fullJID' % (orig_id, new_id)) if not time: - time = msg.time + time = datetime.now() self.correction_ids[new_id] = orig_id message = Message( -- cgit v1.2.3