summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2018-03-31 23:41:15 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-04-01 11:06:25 +0200
commitb7e1db487927dbdc0b26b999b8396a37ffa077e5 (patch)
tree22f56c2d58ba2a59a4d5a372c2aca4543bf937b9
parent4e9f8e2edb8d4687aaa0e32b68283a1df95c62fb (diff)
downloadpoezio-b7e1db487927dbdc0b26b999b8396a37ffa077e5.tar.gz
poezio-b7e1db487927dbdc0b26b999b8396a37ffa077e5.tar.bz2
poezio-b7e1db487927dbdc0b26b999b8396a37ffa077e5.tar.xz
poezio-b7e1db487927dbdc0b26b999b8396a37ffa077e5.zip
Sent Carbon: handle MUC-PMs properly. Fix #3294
-rw-r--r--poezio/core/handlers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index 99960835..8f8ff8bc 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -129,9 +129,8 @@ class HandlerCore:
Carbon <sent/> received
"""
- def ignore_message(sent):
- log.debug('%s has category conference, ignoring carbon',
- sent['to'].server)
+ def groupchat_private_message(sent):
+ self.on_groupchat_private_message(sent, sent=True)
def send_message(sent):
sent['from'] = self.core.xmpp.boundjid.full
@@ -144,7 +143,7 @@ class HandlerCore:
self.core.xmpp,
sent['to'].server,
identity='conference',
- on_true=functools.partial(ignore_message, sent),
+ on_true=functools.partial(groupchat_private_message, sent),
on_false=functools.partial(send_message, sent))
else:
send_message(sent)