Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 285495d

Browse files
authored
Merge pull request #448 from fritzy/v1.3.2
apply fix for Issue #442
2 parents 6e27f28 + 8c66e51 commit 285495d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

sleekxmpp/plugins/xep_0280/carbons.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ def session_bind(self, jid):
6161
self.xmpp.plugin['xep_0030'].add_feature('urn:xmpp:carbons:2')
6262

6363
def _handle_carbon_received(self, msg):
64-
self.xmpp.event('carbon_received', msg)
64+
if msg['from'].bare == self.xmpp.boundjid.bare:
65+
self.xmpp.event('carbon_received', msg)
6566

6667
def _handle_carbon_sent(self, msg):
67-
self.xmpp.event('carbon_sent', msg)
68+
if msg['from'].bare == self.xmpp.boundjid.bare:
69+
self.xmpp.event('carbon_sent', msg)
6870

6971
def enable(self, ifrom=None, block=True, timeout=None, callback=None):
7072
iq = self.xmpp.Iq()

sleekxmpp/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# We don't want to have to import the entire library
1010
# just to get the version info for setup.py
1111

12-
__version__ = '1.4.0'
13-
__version_info__ = (1, 4, 0, '', 0)
12+
__version__ = '1.3.2'
13+
__version_info__ = (1, 3, 2, '', 0)

0 commit comments

Comments
 (0)