summaryrefslogtreecommitdiff
path: root/poezio/text_buffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/text_buffer.py')
-rw-r--r--poezio/text_buffer.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py
index 2ae51d80..3b3ac051 100644
--- a/poezio/text_buffer.py
+++ b/poezio/text_buffer.py
@@ -165,7 +165,7 @@ class TextBuffer:
raise CorrectionError('Wrong message type')
if msg.user and msg.user is not user:
raise CorrectionError("Different users")
- elif msg.history:
+ elif msg.delayed:
raise CorrectionError("Delayed message")
elif not msg.user and (msg.jid is None or jid is None):
raise CorrectionError('Could not check the '
@@ -184,7 +184,6 @@ class TextBuffer:
time=time,
nickname=msg.nickname,
nick_color=msg.nick_color,
- history=False,
user=msg.user,
identifier=orig_id,
highlight=highlight,