Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits: 72d0d568 by lovetox at 2021-02-06T13:49:57+01:00 Don’t notify on messages from ourself
- - - - -
1 changed file:
- gajim/gtk/chat_list.py
Changes:
===================================== gajim/gtk/chat_list.py ===================================== @@ -149,9 +149,20 @@ def _on_message_received(self, event): return
row = self._chats.get((event.account, event.jid)) - row.add_unread() row.set_last_message_text('Me', event.msgtxt)
+ self._add_unread(row, event.properties) + + @staticmethod + def _add_unread(row, properties): + if properties.is_carbon_message and properties.carbon.is_sent: + return + + if properties.is_from_us(): + return + + row.add_unread() +
class ChatRow(Gtk.ListBoxRow): def __init__(self, workspace_id, account, jid, type_):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/72d0d56894a06d2ea4237f2f02214b21e...