summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-16 19:25:57 +0200
committermathieui <mathieui@mathieui.net>2021-04-16 19:25:57 +0200
commite5398e68e97b56f1c1daa8fe104208862c66900f (patch)
tree58ae502bafc2618df927c5f673e7cefdc6729e09
parent3591221e04a539d5eaea8252c363c78515adc171 (diff)
downloadpoezio-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.py2
-rw-r--r--poezio/text_buffer.py2
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(