summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(