summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-05-17 21:14:23 +0200
committermathieui <mathieui@mathieui.net>2020-05-17 21:14:23 +0200
commit551828607c7644d7af6b5889c7ffb2f28eeefee9 (patch)
tree35f39d2e623e03b1bc1d1b2e482875e2f362bbde
parent6057d0dc9b7c78090eb2a64e45fd427f5d641131 (diff)
downloadpoezio-551828607c7644d7af6b5889c7ffb2f28eeefee9.tar.gz
poezio-551828607c7644d7af6b5889c7ffb2f28eeefee9.tar.bz2
poezio-551828607c7644d7af6b5889c7ffb2f28eeefee9.tar.xz
poezio-551828607c7644d7af6b5889c7ffb2f28eeefee9.zip
Fix highlight display on corrections
-rw-r--r--poezio/tabs/muctab.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 02964395..d4ff1d48 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -1101,7 +1101,9 @@ class MucTab(ChatTab):
nickname=None,
user=None,
jid=None):
- highlight = self.do_highlight(txt, nickname, delayed, corrected=True)
+ highlight = self.message_is_highlight(
+ txt, nickname, delayed, corrected=True
+ )
message = self._text_buffer.modify_message(
txt,
old_id,
@@ -1319,7 +1321,7 @@ class MucTab(ChatTab):
self.general_jid,
).split(':')
highlighted = False
- if not delayed and not corrected:
+ if not delayed:
if self.build_highlight_regex(self.own_nick).search(txt):
highlighted = True
else:
@@ -1335,7 +1337,7 @@ class MucTab(ChatTab):
highlighted = self.message_is_highlight(
txt, nickname, delayed, corrected
)
- if highlighted and self.joined:
+ if highlighted and self.joined and not corrected:
if self.state != 'current':
self.state = 'highlight'
beep_on = config.get('beep_on').split()