diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-16 19:25:57 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-16 19:25:57 +0200 |
commit | e5398e68e97b56f1c1daa8fe104208862c66900f (patch) | |
tree | 58ae502bafc2618df927c5f673e7cefdc6729e09 | |
parent | 3591221e04a539d5eaea8252c363c78515adc171 (diff) | |
download | poezio-e5398e68e97b56f1c1daa8fe104208862c66900f.tar.gz poezio-e5398e68e97b56f1c1daa8fe104208862c66900f.tar.bz2 poezio-e5398e68e97b56f1c1daa8fe104208862c66900f.tar.xz poezio-e5398e68e97b56f1c1daa8fe104208862c66900f.zip |
fix: correction time in one to one tabs (fix #3532)
-rw-r--r-- | poezio/core/handlers.py | 2 | ||||
-rw-r--r-- | 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( |