From 961f6c175578bc4f478ff9a217cd1125bdc8bd09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 25 Jan 2020 02:24:46 +0100 Subject: Fix highlights by introducing a delayed property on ui.types.Message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/text_buffer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'poezio/text_buffer.py') 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, -- cgit v1.2.3