diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-01-25 02:24:46 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-05-09 19:46:17 +0200 |
commit | 961f6c175578bc4f478ff9a217cd1125bdc8bd09 (patch) | |
tree | fa27ab017fc0e4f4ab98ca37d5e814dcdd07dc5b /poezio/ui | |
parent | cf026cf1b1786a69db05408e9a18627dd3d533c3 (diff) | |
download | poezio-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/ui')
-rw-r--r-- | poezio/ui/types.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poezio/ui/types.py b/poezio/ui/types.py index 8a36618e..ae72b6b9 100644 --- a/poezio/ui/types.py +++ b/poezio/ui/types.py @@ -85,7 +85,7 @@ class StatusMessage(BaseMessage): class Message(BaseMessage): - __slots__ = ('txt', 'nick_color', 'time', 'nickname', 'user', 'history', + __slots__ = ('txt', 'nick_color', 'time', 'nickname', 'user', 'delayed', 'history', 'identifier', 'top', 'highlight', 'me', 'old_message', 'revisions', 'jid', 'ack') @@ -94,6 +94,7 @@ class Message(BaseMessage): nickname: Optional[str], time: Optional[datetime] = None, nick_color: Optional[Tuple] = None, + delayed: bool = False, history: bool = False, user: Optional[User] = None, identifier: Optional[str] = '', @@ -120,6 +121,7 @@ class Message(BaseMessage): else: me = False self.txt = txt + self.delayed = delayed or history self.history = history self.nickname = nickname self.nick_color = nick_color |