From 4eb395c215511920271f4ceb5590217000c340ab 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 17:18:13 +0100 Subject: [PATCH] Don't highlight on reflected messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/tabs/muctab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 336f3fe4..e1dc9dcf 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1093,7 +1093,8 @@ class MucTab(ChatTab): if msg.user: msg.user.set_last_talked(msg.time) if config.get_by_tabname('notify_messages', self.jid.bare) and self.state != 'current': - self.state = 'message' + if msg.nickname != self.own_nick and not msg.history: + self.state = 'message' msg.highlight = self.do_highlight(msg.txt, msg.nickname, msg.delayed) return msg.highlight