Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix carbons
  • Loading branch information
mathieui committed Jan 27, 2017
1 parent 6476cfc commit 22664ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slixmpp/plugins/xep_0280/carbons.py
Expand Up @@ -61,10 +61,12 @@ def session_bind(self, jid):
self.xmpp.plugin['xep_0030'].add_feature('urn:xmpp:carbons:2')

def _handle_carbon_received(self, msg):
self.xmpp.event('carbon_received', msg)
if msg['from'].bare == self.xmpp.boundjid.bare:
self.xmpp.event('carbon_received', msg)

def _handle_carbon_sent(self, msg):
self.xmpp.event('carbon_sent', msg)
if msg['from'].bare == self.xmpp.boundjid.bare:
self.xmpp.event('carbon_sent', msg)

def enable(self, ifrom=None, timeout=None, callback=None,
timeout_callback=None):
Expand Down

0 comments on commit 22664ee

Please sign in to comment.