Commit b7e1db48 authored by ge0rg's avatar ge0rg Committed by Link Mauve

Sent Carbon: handle MUC-PMs properly. Fix #3294

parent 4e9f8e2e
......@@ -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)
......
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