summaryrefslogtreecommitdiff
path: root/poezio/text_buffer.py
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-01-25 02:24:46 +0100
committermathieui <mathieui@mathieui.net>2020-05-09 19:46:17 +0200
commit961f6c175578bc4f478ff9a217cd1125bdc8bd09 (patch)
treefa27ab017fc0e4f4ab98ca37d5e814dcdd07dc5b /poezio/text_buffer.py
parentcf026cf1b1786a69db05408e9a18627dd3d533c3 (diff)
downloadpoezio-961f6c175578bc4f478ff9a217cd1125bdc8bd09.tar.gz
poezio-961f6c175578bc4f478ff9a217cd1125bdc8bd09.tar.bz2
poezio-961f6c175578bc4f478ff9a217cd1125bdc8bd09.tar.xz
poezio-961f6c175578bc4f478ff9a217cd1125bdc8bd09.zip
Fix highlights by introducing a delayed property on ui.types.Message
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
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,