Commit 4966b4bf authored by Philipp Hörist's avatar Philipp Hörist

Remove notifications on receiving own sent carbon copies

Notifications for a JID are removed when we see activity
in the form of a sent carbon copie from one of our other devices.

If we receive such carbon copies we can conclude that the message
we received earlier was answered from one of our other devices.
parent 142f2214
......@@ -251,6 +251,7 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
# Its a Carbon Copied Message we sent
obj.show_in_roster = False
obj.show_in_systray = False
gajim.events.remove_events(self.conn.name, fjid, types=['chat'])
else:
# Everything else
obj.show_in_roster = notify.get_show_in_roster(event_type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment