Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-10-04 22:10:52 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-10-04 22:10:52 +0300
commit35cb5c69d84938bec1c2eeab820ad2b8b06f75bc (patch)
tree7818a93584a07482f648aa91e58a3599c1260ffb /nbxmpp/modules
parent8984a362f3aebb370403f8df0bcfb7ae4d09556b (diff)
Carbons: Use namedtuple for carbon data
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r--nbxmpp/modules/misc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nbxmpp/modules/misc.py b/nbxmpp/modules/misc.py
index fd6c581..4fdbf4e 100644
--- a/nbxmpp/modules/misc.py
+++ b/nbxmpp/modules/misc.py
@@ -27,6 +27,7 @@ from nbxmpp.protocol import InvalidFrom
from nbxmpp.protocol import InvalidStanza
from nbxmpp.protocol import Message
from nbxmpp.structs import MAMData
+from nbxmpp.structs import CarbonData
from nbxmpp.modules.delay import parse_delay
@@ -70,7 +71,7 @@ def unwrap_carbon(stanza, own_jid):
# there is no need to process the received carbon
raise NodeProcessed('Drop MUC-PM "received"-Carbon')
- return message, type_
+ return message, CarbonData(type=type_)
def unwrap_mam(stanza, own_jid):