Don't highlight on reflected messages

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-01-25 17:18:13 +01:00 committed by mathieui
parent 446fa8ea82
commit 4eb395c215

View file

@ -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