diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-01-25 17:18:13 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-05-09 19:46:17 +0200 |
commit | 4eb395c215511920271f4ceb5590217000c340ab (patch) | |
tree | 2a407c5dcbd1dbe49410f80bd9c2122d1edc8b51 | |
parent | 446fa8ea82f0665fecc96c9bed647d9c03cf30ac (diff) | |
download | poezio-4eb395c215511920271f4ceb5590217000c340ab.tar.gz poezio-4eb395c215511920271f4ceb5590217000c340ab.tar.bz2 poezio-4eb395c215511920271f4ceb5590217000c340ab.tar.xz poezio-4eb395c215511920271f4ceb5590217000c340ab.zip |
Don't highlight on reflected messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/tabs/muctab.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |