diff options
author | mathieui <mathieui@mathieui.net> | 2020-05-17 20:37:54 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-05-17 20:37:54 +0200 |
commit | aec4c279f27564e2e83a4f42b1c626ba50b67f95 (patch) | |
tree | d8b6d85ddd02ad73688fd86830988e9f3dfe6c4f /poezio/core/handlers.py | |
parent | 01ebe78401de1a550935c489033800cbd8fd768a (diff) | |
download | poezio-aec4c279f27564e2e83a4f42b1c626ba50b67f95.tar.gz poezio-aec4c279f27564e2e83a4f42b1c626ba50b67f95.tar.bz2 poezio-aec4c279f27564e2e83a4f42b1c626ba50b67f95.tar.xz poezio-aec4c279f27564e2e83a4f42b1c626ba50b67f95.zip |
Fix highlight navigation
Diffstat (limited to 'poezio/core/handlers.py')
-rw-r--r-- | poezio/core/handlers.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 01fb6062..445d8b74 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -783,6 +783,7 @@ class HandlerCore: # Messages coming from MUC barejid (Server maintenance, IRC mode # changes from biboumi, etc.) are displayed as info messages. if message['from'].resource: + highlight = tab.message_is_highlight(body, nick_from, delayed) ui_msg = PMessage( txt=body, time=date, @@ -792,6 +793,7 @@ class HandlerCore: identifier=message['id'], jid=message['from'], user=user, + highlight=highlight, ) typ = 1 else: @@ -801,8 +803,8 @@ class HandlerCore: identifier=message['id'], ) typ = 2 - - if tab.add_message(ui_msg, typ): + tab.add_message(ui_msg, typ) + if highlight: self.core.events.trigger('highlight', message, tab) if message['from'].resource == tab.own_nick: |